Merge pull request #175 from DavidWyand-GG/issue174-TurretTargetWrong

Fix for Issue 174 for Turret Targeting Wrong Direction
This commit is contained in:
David Wyand 2012-12-13 16:32:32 -08:00
commit 60a13caca1

View file

@ -893,7 +893,7 @@ void AITurretShape::_trackTarget(F32 dt)
//if (pitch > M_PI_F)
// pitch = -(pitch - M_2PI_F);
Point3F rot(-pitch, 0.0f, yaw);
Point3F rot(pitch, 0.0f, -yaw);
// If we have a rotation rate make sure we follow it
if (mHeadingRate > 0)