浏览代码

turret tracking correction

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