Solution to the gimbal lock!!!

BlitzMax Modules Forums/MiniB3D/Solution to the gimbal lock!!!

i've made a test against Blitz3D, and it is correct!

if you've got an entity with a parent, and that parent has got a parent too, then look here:

+ Entity : Local Pitch = 90
|-+ Entity : Local Pitch = 90 <-- Here the child is at 180 degrees in global right?
...|-+ Entity : Local Pitch = 90 <-- And now this entity's pitch is 270 global right?

thats it! just add all the parents angle-degrees together.