rotation of a child

I have an object A with a child B. How can I set the rotation of B so that it will have a world rotation of Euler(0f, 0f, 90f)? Thank you.

Hi @fengkan

You can then set rotation with Euler angles, like this:

this.transform.rotation = Quaternion.Euler(0,0,90);
1 Like

I thought I would need something like Quaternion inverse, wasn’t aware it’s that simple, thank you very much!