From 7ee82db2cb8d08fae52b065b747d46538c5fba0b Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 22 Jul 2025 17:26:36 -0400 Subject: [PATCH] added: static facing direction to enum --- Assets/Scripts/Core/Graph Tasks/ProcessMovement.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Core/Graph Tasks/ProcessMovement.cs b/Assets/Scripts/Core/Graph Tasks/ProcessMovement.cs index 1ab94de..c930fe2 100644 --- a/Assets/Scripts/Core/Graph Tasks/ProcessMovement.cs +++ b/Assets/Scripts/Core/Graph Tasks/ProcessMovement.cs @@ -12,7 +12,8 @@ namespace Reset.Player.Movement{ public enum PlayerFacingDirection{ Target = 0, Movement, - MatchCamera + MatchCamera, + Static } } @@ -99,6 +100,9 @@ namespace NodeCanvas.Tasks.Actions { // Needed to keep the character from inheriting the camera's height-rotation targetRotation = Quaternion.Euler(Camera.main.transform.rotation.eulerAngles.Flatten(0, null, 0)); break; + case PlayerFacingDirection.Static: + targetRotation = agent.transform.rotation; + break; } // Construct move direction