mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-18 22:08:30 +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…
Add table
Reference in a new issue