Hi, I’m importing a GLTF from Ready Player Me. I want to rotate the head based on the rotation of the WebXRCamera.
If I find the “Head” bone and apply the rotation to it, nothing happens. I tried modifying rotation
directly and with setRotation
(throws an error) and rotate
. In the inspector, I can’t modify its rotation either. Adding a gizmo with the inspector works though.
If instead, I find the “Head” TransformNode that’s attached to the bone, it does work in code and in the inspector. I’m applying Euler rotations, so I set rotationQuaternion to null
which is something I’m unable to do with the bone as I get an error.
I don’t get the errors and why some cases are not working. I’d love to understand it, thank you!