absoluteRotationQuaternion

Hello!

I not understand TransformNode.absoluteRotationQuaternion behaviour.
It return zero-rotation quaternion in many cases.

In my project i noticed - this value appearing, when some mesh is applyed as child to transformNode, but unfortunately i can’t repeat the situation for demonstrate the problem.

Please, look at Babylon.js Playground why absoluteRotationQuaternion never changes?
How i can get this property?

Thank you for pay attention and please, help me.

1 Like

Hi @Blax

absoluteRotationQuaternion is computed from world matrix of the node. It’s done once per frame or you can compute it when needed.

absoluteRotationQuaternion | Babylon.js Playground (babylonjs-playground.com)

3 Likes

@Cedric, thank you!
You mean i have to call computeWorldMatrix manually for get the absolute rotation Quaternion value? Right?

if you want to get the absolutate rotation just after changing rotation of the node or 1 of its parent, yes.

3 Likes

Thank you again!!!
Yes, it works :slightly_smiling_face:

1 Like