PhysicsSprite's child not move with the sprite

What’s the issue?
PhysicsSprite’s children node don’t move with the sprite.
I add a label in a PhysicsSprite, the label wont move with the PhysicsSprite.

What’s the engine version?
cocos2d-x 3.0 final
but I merge the bugfix that PhysicsSprite wont move with the cpBody

How to reproduce it?
add child in PhysicsSprite and this chipmunk engine move the PhysicsSprite;

Hi, can you tell me where the location of that fix for PhysicsSprite does not follow chipmunk physics body is? I need that for the bugs I see with my PhysicsSprite.

In regard to your problem, the update positions of the PhysicsSprite would need to be fixed to apply the changes to the childs as well.

While looking at the code to fix my issue, the fix for you issue is that you will have to manually mark dirty all the child nodes of PhysicsSprite . Normally Sprite::setPosition() would mark the Node and its children dirty to get redrawn, but PhysicsSprite does things differently. Look at Sprite::setPosition() to see how they do it.

I met the same problem, then I set the child’s property ‘dirty’ to ‘true’, rotate,scale is ok, but it still can’t be fixed to apply the move changes.