Get world rotation

Hi,

Having a real bad time with this issue :

I have a rotated child object inside a rotated parent object.

const parent = new Object3D();
const child = new Object3D();

parent.add( child );

parent.rotation.x = Math.random();
child.rotation.y = Math.random();

How can I get child’s world space rotation (Euler) ?

I need child orientation in world space for physics calculation.

Have you tried calling Object3D.getWorldQuaternion() on the child? You can convert the resulting quaternion to euler values in the next step.

Thanks I didn’t know this method, that’s what I needed :+1: