ecctrl
ecctrl copied to clipboard
How to get player rotation
I can get a ref to the ecctrl to get the player .translation() but is there a way to get rotation too?
I need it to determine the direction of a thrown object from the player.
Thanks.
For First person I guess I could just get the camera rotation.
characterRef.current.rotation() should be the character's rotation.
@ErdongChen-Andrew that's just giving me 0 0 0 1
Did you turn off the autoBalance? If so, you need to trace the character model .getWorldQuaternion()