is this gimbol lock?

BlitzMax Forums/MiniB3D Module/is this gimbol lock?

Robert Cummings(Posted 2010) [#1]
PointEntity(camera, world)
MoveEntity(camera, 1, 1, 0)

Eventually the camera gets into a perminant spin and doesn't move...


How to fix so i can pan the camera anywhere while looking at one object?


Robert Cummings(Posted 2010) [#2]
After some reading I found minib3d defininately can't handle rotations like blitz3d. its fine for ground based games but dies on games in space.

Thats my space idea out of the window with a small trumpet sound. Short of buying unity, I don't see any solution for this so I think I will have to can the PC version and just go with an ipad native solution or make a different game.

Who would have guessed that this problem would be a problem :)

If its not the object, its the camera, and if its not the camera its something else rearing its head with gimble lock! Fustrating but at least I know the root cause of my problems now.


_Skully(Posted 2010) [#3]
might help?

http://www.dscho.co.uk/blitz/tutorials/quaternions.shtml


Robert Cummings(Posted 2010) [#4]
Thanks a lot :) interesting reading


ima747(Posted 2010) [#5]
I think there's another implementation that gets around gimbal lock in the forum here somewhere... I never got it to work with my existing projects though so expect some oddities.

There are also some hacks that you can do to try to prevent gimbal lock but everything is use with your own risk.


Robert Cummings(Posted 2010) [#6]
I think the key is to rotate a pivot one axis and rotate the child object or camera on the other axis.