normalize movement input

This commit is contained in:
in0finite 2021-09-11 19:14:31 +02:00
parent d249412ab9
commit 348c93ea5a

View file

@ -527,7 +527,7 @@ namespace SanAndreasUnity.Behaviours
// movement can only be done on X and Z axis
this.Movement = this.Movement.WithXAndZ ();
this.Movement = this.Movement.WithXAndZ().normalized;
// change heading to match movement input
//if (Movement.sqrMagnitude > float.Epsilon)