- Home /
Limit Diagonal Speed
I'm modifying the basic FPSWalker that Unity provides to fit my needs but I've seen people with the same problem I have. I need to have the diagonal speed limited because I move faster when I'm moving diagonal. How do I keep it so my character moves the same speed he would move if he was moving forward.
Thanks in advance
Answer by Eric5h5 · Jul 18, 2010 at 12:57 AM
http://www.unifycommunity.com/wiki/index.php?title=FPSWalkerEnhanced That method is sort of a hack...the "correct" way would be to normalize the speed, but in practice multiplying by .7071 (i.e., 1/sqrt(2)) works fine with typical keyboard control and is faster/simpler.
$$anonymous$$, I'll look into it but what do you mean by normalize the speed?
Answer by Tetrad · Jul 18, 2010 at 06:41 AM
Duplicated question: http://answers.unity3d.com/questions/12945/problem-with-moving-gameobject-especially-diagonally/12948#12948