From 0f2e4b80e6fd32868c48350a8178b72daea2ab96 Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Thu, 3 Jul 2025 16:57:00 -0500 Subject: [PATCH] add grace hieght for pathshape snapping eval leverage minFaceDistance plus current hieght to try and ensure stepping down into a pathshape/tsstatic within the 0.1 ot -1.0 detection range range doesn't snap you through another one. --- Engine/source/T3D/player.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Engine/source/T3D/player.cpp b/Engine/source/T3D/player.cpp index e6b779eb0..4453dd8bf 100644 --- a/Engine/source/T3D/player.cpp +++ b/Engine/source/T3D/player.cpp @@ -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 {