Calculate AoA for realistic airplane model...

Hello everyone, I'm trying to develop a fairly realistic flight model. But I can not solve a problem: I would like to calculate the 'angle of the velocity vector (eg z) and ' corner 's plane. I tried to do a lot of evidence and are still more than a month here, and I have a mess on his head! Thanks in advance ....

[edit on 04.00 26 APRIL 11]

Tanks anyway! ....more precisely: I need calculate the angle from my Z (Vector of the Airplane) to Vector velocity of this. (To simulate the wind).

The problem is the vector of velocity, not the calculation of the angle.

1 Answer

1

I'm not sure what you're asking exactly. If you want to calculate the angle between two vectors you can use Vector3.Angle(plane's vector,ground's vector)

http://unity3d.com/support/documentation/ScriptReference/Vector3.html