Cheers.

It could be solved by my quaternion code, but the main change I want to make to my quaternion code is that it uses ang_for_axis to convert back to a Euler angle (which is the reason 7.8 is needed here), instead of its current method (which isn't smooth when it approaches certain orientations). I would solve that by converting the quaternion to a matrix and rotating the entity with that, but the functions to modify an entity's orientation using matrices also require 7.8. Sorry.

Hopefully Lite-C will be updated with the next update. Feel free to give my quaternions a go anyway, as the conversion back to Euler angles should be precise enough for most situations (a few years ago I had physics that used my quaternion code and that went pretty smoothly).

Jibb


Formerly known as JulzMighty.
I made KarBOOM!