Merge pull request #1512 from Azaezel/alpha41/stepAlongNow

add grace hieght for pathshape snapping eval
This commit is contained in:
Brian Roberts 2025-07-03 17:42:14 -05:00 committed by GitHub
commit c138d838bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4763,8 +4763,11 @@ void Player::updateAttachment()
Point3F(pos.x, pos.y, pos.z - 1.0f ),
sCollisionMoveMask, &rInfo))
{
Point3F setPos = rInfo.point;
setPos.z = mMax(setPos.z+sMinFaceDistance, pos.z);
if ((mJumpSurfaceLastContact < JumpSkipContactsMax) && !mSwimming)
setPosition(rInfo.point, getRotation());
setPosition(setPos, getRotation());
if( rInfo.object->getTypeMask() & PathShapeObjectType) //Ramen
{