gd: mantle end location system

This commit is contained in:
2025-05-23 11:19:27 +02:00
parent b340fe21c7
commit 29d196acdf
11 changed files with 73 additions and 31 deletions

View File

@ -59,7 +59,8 @@ public partial class PlayerController : CharacterBody3D
RayCast3D stairsBelowRayCast3D = GetNode<RayCast3D>("StairsBelowRayCast3D");
RayCast3D stairsAheadRayCast3D = GetNode<RayCast3D>("StairsAheadRayCast3D");
RayCast3D wallInFrontRaycast3D = GetNode<RayCast3D>("WallInFrontRayCast3D");
ShapeCast3D wallInFrontCast3D = GetNode<ShapeCast3D>("WallInFrontCast3D");
ShapeCast3D mantleCast3D = GetNode<ShapeCast3D>("MantleCast3D");
Node3D cameraSmooth = GetNode<Node3D>("Head/CameraSmooth");
@ -93,7 +94,7 @@ public partial class PlayerController : CharacterBody3D
StairsSystem.Init(stairsBelowRayCast3D, stairsAheadRayCast3D, cameraSmooth);
MantleSystem = GetNode<MantleSystem>("MantleSystem");
MantleSystem.Init(wallInFrontRaycast3D, Head);
MantleSystem.Init(wallInFrontCast3D, Head, mantleCast3D);
CapsuleCollider = GetNode<CapsuleCollider>("CapsuleCollider");