diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-02-05 11:31:54 +0300 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-02-05 11:31:54 +0300 |
commit | 09de511c37c32e13af3f72ded7f0f9e19f395ae2 (patch) | |
tree | 10b57c28929fd978cc2314e9066106ea930457d6 /src/control/CarCtrl.cpp | |
parent | a78212ea800fe1919d5380beb25514e3887bcdea (diff) |
fixed plane AI
Diffstat (limited to 'src/control/CarCtrl.cpp')
-rw-r--r-- | src/control/CarCtrl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp index c6d78882..d05d9827 100644 --- a/src/control/CarCtrl.cpp +++ b/src/control/CarCtrl.cpp @@ -2757,7 +2757,7 @@ void CCarCtrl::SteerAIPlaneTowardsTargetCoors(CAutomobile* pPlane) up.Normalise(); CVector forward(Cos(pPlane->m_fOrientation), Sin(pPlane->m_fOrientation), fForwardZ); forward.Normalise(); - CVector right = CrossProduct(forward, up); + CVector right = CrossProduct(up, forward); right.z -= 5.0f * pPlane->m_fPlaneSteer; right.Normalise(); up = CrossProduct(forward, right); |