Hey. This was a test I made a while ago to try to work out how to program a flight simulator. There are plenty of bugs, but it isn’t too bad. It was made back in Blender 2.48a, so the python code is mostly deprecated, meaning it won’t work in 2.5, but it should still work in 2.49, though it may leave you hate mail on your console.
comma/period - rudder left/right
b - wheel brake (on ground)
s - speed brake (in air)
f - flaps up/down (add lift during take off and landing)
g - gear up/down (adds drag)
mouse up/down - throttle
left click + drag - pan camera
1 key - HUD view
3 key - external view
4 key - fly-by view
There are multiple bugs, including the fact that the velocity vector isn’t always accurate, and the aerodynamics are off. N key was a test with night vision, which just looks horrible. If you’ve seen my most recent fps game (link’s in sig) you’ll see that I’ve found a MUCH better way of making night vision.
Air pressure changes with altitude and determines both lift and engine thrust. flaps and gear add drag when extended. Theres a shockwave when you brake the sound barrier. Altitude ladder and compass were never added. Cockpit view (supposed to be 2 key) was never added.
I’m never going to use this again, so feel free to use however you want.
Here’s the .blend: http://www.box.net/shared/vb4mq0cras