I am trying to make my character be able to evade attacks. My movement script is quite long but this is the portion of code I am using.
if(evading)
{
moveDirection = playerRotation.transform.forward / 5 * evadeSpeed;
moveSpeed = evadeSpeed;
}
The problem here is that I don't have control over the two things I need:
The distance of the roll and the speed in which the character covers the distance. I am uncertain how to control these.
↧