Hello Dear Community,
i have an easy problem but i still cant find a clean fix for that,
my simple Character Controller Script:
private void Movement(){
if (transform != null)
{
transform.Rotate(0, Input.GetAxis("Horizontal") * RotateSpeed, 0);
var forward = transform.TransformDirection(Vector3.forward);
float curSpeed = Speed * Input.GetAxis("Vertical");
characterController.SimpleMove(forward * curSpeed);
}
}
so lets say, if the Character is rotating to the Left or Right,
i would love to play a Animation depending on the Rotation.