fix: correctly detecting items horizontally in front of player

This commit is contained in:
2025-05-22 17:55:48 +02:00
parent a926840570
commit b340fe21c7
3 changed files with 16 additions and 6 deletions

View File

@ -93,7 +93,7 @@ public partial class PlayerController : CharacterBody3D
StairsSystem.Init(stairsBelowRayCast3D, stairsAheadRayCast3D, cameraSmooth);
MantleSystem = GetNode<MantleSystem>("MantleSystem");
MantleSystem.Init(wallInFrontRaycast3D);
MantleSystem.Init(wallInFrontRaycast3D, Head);
CapsuleCollider = GetNode<CapsuleCollider>("CapsuleCollider");