浏览代码

handle pathshapes comming in from above players more gracefully
if you're within a pathshape as it moves, put you on top

AzaezelX 7 月之前
父节点
当前提交
7b393b668b
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Engine/source/T3D/player.cpp

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

@@ -4771,6 +4771,9 @@ void Player::updateAttachment(){
         Point3F(pos.x, pos.y, pos.z - 1.0f ),
         PathShapeObjectType, &rInfo))
     {
+       if ((mJumpSurfaceLastContact < JumpSkipContactsMax) && !mSwimming)
+          setPosition(rInfo.point, getRotation());
+
        if( rInfo.object->getTypeMask() & PathShapeObjectType) //Ramen
        {
           if (getParent() == NULL)