Hi, i've an airplane, and I need to simulate the aerodynamic forces (angular forces) wich makes the plane to look always to it's speed direction. F.example: You yaw right the airplane, and afther it must return to it's speed direction, so the airplane must hace an angular force wich makes it to look where it's going. But this force mustn't change the plane's roll.
I've created this code but it doesn't work:
vec_diff(center, plane.pan, direction); //count the angle difference between plane an it's direction
vec_set(center, vector(sign(center.x)*0.08, sign(center.y)*0.08 , 0)); //scale the torque
phent_addtorqueglobal (plane, center);
I need help to do this right, i've tried lot's of things but i can't get it work properly