Explorar el Código

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

turret tracking correction, again
Daniel Buckmaster hace 10 años
padre
commit
e47b95ee5d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)