I must admit that I haven't inspected your code very thoroughly. However, the physics of a plane is made of the "four forces":
- gravity
- lift
- drag
- engine power (this one may be absent in gliders)
Gravity is trivial to compute (it's a fixed amount always directed downward in the earth reference frame).
Lift and Drag are very similar. They both depends upon speed (squared) and other factors (air density and other constants depending upon the plane's geometry); they must be calculated using the absolute speed of the plane, and then applied in the right direction: drag must be applied in the opposite direction of speed, lift must be applied toward the plane "top", in the plane reference frame (NOT in the earth absolute reference frame!).
Engine power is applied toward the plane "front", again in the plane reference frame.
If you're doing everything correctly and the plane is still continuously accelerating, you're probably using an unrealistic lift/drag ratio, ie you're generating too much lift and too few drag so that you're violating energy conservation. In that case, simply try to reduce the lift coefficient (and/or increase the drag one) until the system becomes "stable"...
lastcodewarrior
Member Since 06 Jan 2008Offline Last Active May 03 2012 04:42 AM

Find content
Female