Hello!
I'm trying to add child CCSprite to the PhysicsSprite with specific cpBody. But when i run simulation, child doesn't moves together with parent and just stand still. Any idea what i'm doing wrong? Here the code:
Update: i have found that sprites start following parent if i'm adding any kind of animation action to it. So the question is probably not chipmunk related in this case.
[little offtop]
I think you're wrong to use a batch.
If I remember correctly, in the Cocos2D, to accelerate the rendering of a large number of sprites, they must have the same texture (one texture file). What you have written, does not increase the efficiency of rendering. (If your course is variable batch CCBatchNode)
Sprite textures are parts of texture atlas so i suppose it's ok to use batch like that. But the different question would be "will batch node count child sprites of physics sprite when rendering or no".
I know there are some peculiarities involved with children of batched sprites, but I don't really remember what off the top of my head. You'll probably get a better answer on the Cocos2D forums.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/