Pārlūkot izejas kodu

Merge pull request #971 from Azaezel/revert-794-euler_to_quat_revert

turret tracking correction, again
Daniel Buckmaster 10 gadi atpakaļ
vecāks
revīzija
e47b95ee5d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      Engine/source/T3D/turret/aiTurretShape.cpp

+ 1 - 1
Engine/source/T3D/turret/aiTurretShape.cpp

@@ -892,7 +892,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)