Rotation not working correctly with movement

Hi there,

Im trying to figure out what I need to do here, when I rotate the mesh the movement is going out of whack, very noticable when you bank to 90 degrees and try to pitch and change heading, I know I need to translate this somehow to relative rotation but Im not sure how to go about it, perhaps yall can help.

Floating Blue box | Babylon.js Playground (babylonjs.com)

Hi @zudnik

Iā€™m not sure to understand what you want to do. If you want to change the orientation of the cube a make it follow the direction, maybe you want to keep the Y up. In that camera, I would use Quaternion | Babylon.js Documentation as a second step to align the cube up vector to the world up vector.

3 Likes