소스 검색

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

turret tracking correction, again
Daniel Buckmaster 10 년 전
부모
커밋
e47b95ee5d
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)
    //   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)