thanks for the tip but local variables slow down function calls too. i don't know which would be slower, but it isnt the end of the world i've uploaded it again. quat_to_unit has been fixed up so that the value of the angle is preserved. this wasn't a problem when the magnitude was only slightly off, but i was having problems when quaternizing long vectors.

julz


Formerly known as JulzMighty.
I made KarBOOM!