mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-26 14:00:17 +00:00
normalize movement input
This commit is contained in:
parent
d249412ab9
commit
348c93ea5a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue