mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Fix for Issue 174 for Turret Targeting Wrong Direction
This commit is contained in:
parent
20b1d1f216
commit
539fa70a3d
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue