I try to make a flight simultor with real physics equations.
I use this book : David Bourg, Physics for game developers, Ed. O'reilly
(link: [Only registered users see links. ])
I try his flight simulator but i have a problem.
It's impossible to pitch down the plane.
I think there is a problem somewhere with his equation, but i don't find
it (I'm not enought good in physics).
So, if someone can help me ?
"Grandss" <grandss@nospam> wrote in message news:42ff2510$[Only registered users see links. ].lu...
"Be sure that the C++ program is capable of accommodating pitch as a flight
variable, and that the code is not based on an oversimplified example."
In particular make sure the coordinate system is truly 3-D. For example,
the expression for aerodynamic lift should be resolved into horizontal as
well as vertical components, based upon the pitch and roll angles. If you
do not see each of the forces demonstrating contributions in multiple
directions, the example is oversimplified.
tadchem a écrit :
Hi, thanks for precision
I think code is not too simplified
the 4 forces (thrust, drag, lift and mass) are take in consideration.
and the author calcute everything about each part of plane
i check flight commands, but it appears OK.
I continue to search
"Grandss" <grandss@nospam> wrote in message news:42ff44c2$[Only registered users see links. ].lu...
That is the minimum number of forces necessary for a functional program.
Check to see if there is any 'sideslip' (horizontal force to port or
starboard) when the lift force is calculated while the aircraft is banking.
Sideslip is the force that *actually* makes the aircraft turn.
If the plane is in a banking turn, the lift should not all be vertical.
Simple trigonometry should be used to calculate how much of the sideslip is
produced to turn the plane, and how much the vertical component of lift is
reduced. If the reduced vertical lift does not match the weight, the plane
will lose altitude.
Scan through the code looking for trigonometric functions - mainly the sine
and cosine functions. If you don't see them, don't use the code.