diff --git a/Samples/2D/Scripts/AirMovement1D.cs b/Samples/2D/Scripts/AirMovement1D.cs index f1bf410..8e11f20 100644 --- a/Samples/2D/Scripts/AirMovement1D.cs +++ b/Samples/2D/Scripts/AirMovement1D.cs @@ -33,12 +33,8 @@ namespace Syntriax.Modules.Movement.Samples velocity.x += moveValue * Time.fixedDeltaTime; if (moveValue != 0f) - { if (Mathf.Abs(velocity.x) > Mathf.Abs(moveValue)) - velocity.x = moveValue; - else if (Mathf.Abs(velocity.x - moveValue) > Mathf.Abs(moveValue)) - velocity.x += moveValue * Time.fixedDeltaTime; - } + velocity.x *= .95f; rigid.velocity = velocity; }