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