Hey guys,
Im having some difficulty getting my character to stay still when my gamepad is in a ‘resting’ pose. Currently if i let go of the joystick, my character doest stay in the last facing direction and slowly glides across the floor, any ideas as to how to fix this? im sure its something simple.
void Update ()
{
float moveHorizontal = Input.GetAxisRaw ("Horizontal");
Vector3 movement = new Vector3(moveHorizontal, 0.0f, 0);
transform.rotation = Quaternion.Slerp(transform.rotation,Quaternion.LookRotation(movement), 0.15F);
}