Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Roll/Dodge/Evade System

$
0
0
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.

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>