Sfoglia il codice sorgente

Fix for Issue 174 for Turret Targeting Wrong Direction

DavidWyand-GG 12 anni fa
parent
commit
539fa70a3d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Engine/source/T3D/turret/aiTurretShape.cpp

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

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