[3.4.2]Rotation with node have rigidbody2d

I have node A is the parent of node B. Node B have rigid body 2d with type static. I try to tween node A like this but it’s not working. How do I rotate the father node but the son node also rotates with father ?
tween(nodeA) .to(3, {angle:270}) .start()

Let me ask engineering to have a look.

Hi @slackmoehrle, any update ?

You can update the rotation of the child node in the update method.

i already try it but in android it’s not correct. i update the rotation of the child node in update method of parent node.

How does it look on Android, can you show it?

Do you want demo project ? . I test with simple project . Child node rotate different from parent node

You can send me a screenshot to see the different.

Hi @linrm, this bug just happen when rotate with spine skeleton . Rotating with sprite still works normally

 tween(camap).to(3, { angle: 270 }).start();

In web, it rotates right. In android, it rotate wrong ( it rotate 540 degrees)
testRotate.zip (1.8 MB)

Hi @linrm , have you found issue ?

The issue is caused by box2d, you can set 2D Physics System to builtin.

1 Like

Hi @linrm , thanks for reply. Will the next version of cocos fix issue ?

yeah, it may fix in v3.5.1 or later.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.