When my player roams the scene, I don’t want him continuously running into the wall, so how can i stop accepting input if a wall is in the direction of said input?
My goal is to prevent the player animations from continuously looping if he can’t go anywhere.
I think N3K has what I’m looking for in their MotorHelper script (https://gitlab.com/N3K/movement-controller/blob/master/Assets/Scripts/Motor/MotorHelper.cs) with KillVector, but they are using CharacterController’s properties to detect the “tokill” vector and I’m using Rigidbody.