mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
turret tracking correction
This commit is contained in:
parent
6009ac3568
commit
034de4f84b
1 changed files with 1 additions and 1 deletions
|
|
@ -892,7 +892,7 @@ void AITurretShape::_trackTarget(F32 dt)
|
||||||
//if (pitch > M_PI_F)
|
//if (pitch > M_PI_F)
|
||||||
// pitch = -(pitch - M_2PI_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 we have a rotation rate make sure we follow it
|
||||||
if (mHeadingRate > 0)
|
if (mHeadingRate > 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue