소스 검색

Merge pull request #345 from Azaezel/alpha40_pathshapeMountfix

pathshape gravity suppression injection
Brian Roberts 5 년 전
부모
커밋
6a2bfc221f
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      Engine/source/T3D/player.cpp

+ 2 - 0
Engine/source/T3D/player.cpp

@@ -2889,6 +2889,8 @@ void Player::updateMove(const Move* move)
    moveSpeed *= speed_bias;
    // Acceleration due to gravity
    VectorF acc(0.0f, 0.0f, mNetGravity/(1.0 - mBuoyancy) * TickSec);
+   if (getParent() !=NULL)
+	   acc = VectorF::Zero;
 
    // Determine ground contact normal. Only look for contacts if
    // we can move and aren't mounted.