(ehm, I wish I could edit the title: flight, not fight control)
hi
I am curently working on a game that contains some free flight controls. The ship must b capable of flying proper loopings. my code looks like this:
I catch mouse movement speed in mxs# and mys#, then
Now this works nicely until I fly right down with a pitch of 90 degrees. Then (when I try to fly headover and complete the looping) the pitch jumps from 90 to -90 as expected, but an undesired effect appears: the Roll of the ship jumps 180 degrees as well! Althoug I explicitely set it to 0 with the RotateEntity Command. I already checked if it's a global/local problem, it isn't
Could anybody help me to solve this, I need this badly and I think anyone who wants flight controls will need it too.
hi
I am curently working on a game that contains some free flight controls. The ship must b capable of flying proper loopings. my code looks like this:
I catch mouse movement speed in mxs# and mys#, then
TurnEntity ship, mys,mxs,0 RotateEntity ship, entitypitch(ship),entityyaw(ship),0
Now this works nicely until I fly right down with a pitch of 90 degrees. Then (when I try to fly headover and complete the looping) the pitch jumps from 90 to -90 as expected, but an undesired effect appears: the Roll of the ship jumps 180 degrees as well! Althoug I explicitely set it to 0 with the RotateEntity Command. I already checked if it's a global/local problem, it isn't
Could anybody help me to solve this, I need this badly and I think anyone who wants flight controls will need it too.