From 6ebfd4ef2b0a3b67f6f83fb43847774fa457d473 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 1 Aug 2025 11:48:48 -0400 Subject: [PATCH] changed: removed old raycasts (deprecated by environment observers) --- Assets/Scripts/Player/PlayerMovement.cs | 30 ++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Assets/Scripts/Player/PlayerMovement.cs b/Assets/Scripts/Player/PlayerMovement.cs index 2505947..83ff441 100644 --- a/Assets/Scripts/Player/PlayerMovement.cs +++ b/Assets/Scripts/Player/PlayerMovement.cs @@ -38,19 +38,19 @@ public class PlayerMovement : MonoBehaviour // } // } - void FixedUpdate(){ - LayerMask environmentLayer = LayerMask.NameToLayer("Environment"); - - if (Physics.Raycast(transform.position + Vector3.up, transform.forward, out forwardRay, 2.5f, ~environmentLayer)){ - thisPlayer.controls.graph.SendEvent("ForwardRay", true, null); - } - - if (Physics.Raycast(transform.position + Vector3.up, transform.position + Vector3.left, out leftRay, maxDistance: 2f, ~environmentLayer )) { - thisPlayer.controls.graph.SendEvent("LeftRay", true, null); - } - - if (Physics.Raycast(transform.position + Vector3.up, transform.position + Vector3.right, out rightRay, maxDistance: 2f, ~environmentLayer )) { - thisPlayer.controls.graph.SendEvent("RightRay", true, null); - } - } + // void FixedUpdate(){ + // LayerMask environmentLayer = LayerMask.NameToLayer("Environment"); + // + // if (Physics.Raycast(transform.position + Vector3.up, transform.forward, out forwardRay, 2.5f, ~environmentLayer)){ + // thisPlayer.controls.graph.SendEvent("ForwardRay", true, null); + // } + // + // if (Physics.Raycast(transform.position + Vector3.up, transform.position + Vector3.left, out leftRay, maxDistance: 2f, ~environmentLayer )) { + // thisPlayer.controls.graph.SendEvent("LeftRay", true, null); + // } + // + // if (Physics.Raycast(transform.position + Vector3.up, transform.position + Vector3.right, out rightRay, maxDistance: 2f, ~environmentLayer )) { + // thisPlayer.controls.graph.SendEvent("RightRay", true, null); + // } + // } }