You are stuck in some part of the code, I beleive the problem is thetcalcualtion of angular drag on the fuselage.
The emperical equations of lift and Drag using the fusekage body as a rigid body braeks down when becaus ethey center of presure
does not represent a good aproximation o fthe airfoi.
This is because the plane body will have a center of preasure too close to the plane origin. the force the change of velocity of the center of preasure of the fuselage will not model the angular drag of the plane, or will do a poor aproximation of it.
you can brake the fuselae into two large pieces: front and back, the calculate separate lift and drag for each of them.
then the drag do to rolling will come as an emarging behaviour.
for that you need to model corss section area of teh foil along the direction of is instantenioes velocity.
basically if you remember the Drag equation is
Fd = k * A * r * v ^ 2
A is the area of the cross section of the foild alon the velocity.
what this does is that creates a variable Drag depanding on teh rotion speed
For a plane fuselage when the plane faces the direction of motion A is very small, hoewver when the plane pitch up or down
because now you have a Center of preasure for the front Fuselage, that part will have a non zero velocity the will in one direction and a non zero velocity on the oposite direction on teh back fuselage.
the two part will see a much larger Cross section area and therfore a larg rollig resistance drag from pitch.
The same will go for the wings, ou only need to model the geometry of the cross section of the fiol area along the wing velocity.
did you get my explanation?
andygib wrote:Ok i have done some extensive testing today and here is my conclusion: If i have the drag coeficients normal then the plane flies great, but at 0 thrust the plane stop in the air and falls to ground. If i lower the drag coeficients then the plane glide, but when i turn the plane is uncontrollable (like flying in space).
when you do that, you are basically doing hand and intuition what the proccess that I expleined above does buy the geometry of the vehicle.
bascailly the coeficeent of Drag is calculated by the Area of the cross section of the air foil facing the velocity of the same foil.