I have spent several hours trying to achieve some kind of free flight rotations(e.g. plane) but nothing worked as intended.
Pitch and Yaw are ok as long as Roll doesnt come into play. Rolling an entity should update its local axis and maybe it does that but subsequent alterations to pitch and yaw values just seem to use a global coordinate system.
e.g. rolling 90 deg. left and then pitching 90 deg. up should result in the entity pointing left.(local x axis = global y axis)
With my tries and with the quaternion examples above the entity ends pointing upwards with a rotation of -90 degrees.
Does anyone please have a hint for me how to achieve a kind of plane-bahaviour?
Pitch and Yaw are ok as long as Roll doesnt come into play. Rolling an entity should update its local axis and maybe it does that but subsequent alterations to pitch and yaw values just seem to use a global coordinate system.
e.g. rolling 90 deg. left and then pitching 90 deg. up should result in the entity pointing left.(local x axis = global y axis)
With my tries and with the quaternion examples above the entity ends pointing upwards with a rotation of -90 degrees.
Does anyone please have a hint for me how to achieve a kind of plane-bahaviour?