PG:https://www.babylonjs-playground.com/#JI94L6#17
After box fall down the ground, why box.rotationQuaternion still changed?
see the console.log.
How to get box current rotation?
PG:https://www.babylonjs-playground.com/#JI94L6#17
After box fall down the ground, why box.rotationQuaternion still changed?
see the console.log.
How to get box current rotation?
Ed: nvm that’s not what you asked. What you’re asking is why the physics continues to be applied after it touches the ground, and that’s because there will be some jitter as the object settles into a equilibrium state with the ground. You can speed that up by setting the angular and linear velocities to zero
When you use mesh.rotate
You will be affecting the mesh’s rotationQuaternion
Property. This bypasses the Euler angle-based rotation
property, meaning that future changes to the mesh rotation are reflected in and by the quaternion
HTH!
Thank you very much!