Hey thanks for the reply. I looked into the
CCPhysicsBody and the associated
ChipmunkObject a bit more and the
CCPhysicsBody has a valid
ChipmunkObject does not:
[CCPhysicsBody shapes] uses the
ChipmunkBody to build the returned array:
- (NSArray *)shapes
NSMutableArray *arr = [NSMutableArray array];
cpBodyEachShape(&_body, (cpBodyShapeIteratorFunc)PushShape, arr);
Which brings up the questions:
- Why are there two lists?
- Why are they out-of-sync with each other?
- Why not just return
_shapeList instead of building a new list?
Looks like a bug of some sort to me. @slembcke, I could really use your help here.