From 6a36865b7f3eabb5d75f57a2c8d57a497c794abb Mon Sep 17 00:00:00 2001 From: psyGamer Date: Sat, 17 Feb 2024 01:14:09 +0100 Subject: [PATCH] Display grab colldiers (purple) --- Source/Actors/Player.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Actors/Player.cs b/Source/Actors/Player.cs index b1b5319..ef8d7d7 100644 --- a/Source/Actors/Player.cs +++ b/Source/Actors/Player.cs @@ -2330,6 +2330,11 @@ public void RenderCollider(Batcher3D batch) batch.Disk(SolidWaistTestPos, WallPushoutDist, 16, Color.Yellow * 0.5f); batch.Disk(SolidHeadTestPos, WallPushoutDist, 16, Color.Yellow * 0.5f); + // Climb check + batch.Torus(SolidWaistTestPos, ClimbCheckDist, 16, new Color(0xFF00FF)); + if (Velocity.Z > 0 && !onGround && stateMachine.State != States.Climbing) + batch.Torus(SolidWaistTestPos + Vec3.UnitZ * 4, ClimbCheckDist, 16, new Color(0xFF00FF)); + // Death/Pickup collision batch.Cube(SolidWaistTestPos, Color.Red, thickness: 0.2f);