浏览代码

Fix for Issue 174 for Turret Targeting Wrong Direction

DavidWyand-GG 12 年之前
父节点
当前提交
539fa70a3d
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)
    //   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)