Hello again,
I’ve created a blend tree with five states so that my character can blend animations for the direction he moves
The issue I have in linking it to his movement is that this is a top down game similar to old Zelda, so the character’s rotation is always following the mouse. I don’t really know how I’d be able to link this in code? This is because pressing “w” always makes the character move up but he may not always be facing up because of the mouse controls. I’m using a character controller component not a rigid body to move him around.
Heres the code I use to have him look at the mouse point.
Plane playerPlane = new Plane(Vector3.up, transform.position);
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
float hitDist = 0.0f;