Thursday, August 4, 2022
HomeGame Development 2D rotation is completely different if rigidbody2D is added - Cocos...

[v3.5.2] 2D rotation is completely different if rigidbody2D is added – Cocos Creator


I attempted to rotate for round movement impact of node like under.

let origin = Quat.rotateZ(new Quat(),new Quat(), 0);
this.node.rotation=Quat.rotateZ(new Quat(), origin, angle * Math.PI/180);

It’s labored properly but when i add rigidbody2D within the node it isn’t working otherwise.
I can’t know the explanation.
I attempt to set 2D Physics System to builtin and it’s working accurately however gravity just isn’t working.
Let me know Why the rotation conduct is completely different if rigidbody2D is added.


The Builtin 2D physics system solely has collision detection, inflexible our bodies don’t work for the Builtin 2D physics system. You may confer with: 2D RigidBody · Cocos Creator

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments