sub/heli/vtol control via python


(Krabat) #1

hoi everyone,

doing my first steps with python i’m trying to make control for a vessel like a sub/heli/vtol whatever. the forward and reverse movement direction is controlled by the mouse, rising and descending is affected by the orientation of the vehicle, and some strafing left and right is built in, too.
as i’m a complete newbie to this stuff i would appreciate some comments of all you game-engine-cracks to my coding. some things are quite buggy, e.g. you accelarate, then rise still holding the forward button, after releasing the rise-button the mouse-orientated-moving ceases to work :frowning:
maybe if re-used some variables too often? dunno… help…

http://www.vonuebel.com/files/navigation01.zip (ca. 600KB)

Krabat