How would i implement inertia

(using the default questions sorry lol)

  1. What do you want to achieve? Keep it simple and clear!
    I want to implement inertia to the players movement (slowing down when rapidly moving directions)
    heres an example: Example clip

  2. What is the issue? Include screenshots / videos if possible!
    I messed with the movement scripts but instead of inertia it just stops the player’s movement completely.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    i looked for solutions, but didnt find any that i could modify to fit my needs, as theyre all for vehicles / custom characters

i dont want a whole script, i just need a hint of what direction to go into

1 Like

So for normal humanoids you can lerp the movement direction to have that increase velocity over time effect:

Or you can do numerical integration to mimic acceleration physics velocity = velocity + acceleration * dt.

3 Likes

thanks mate! ill mark this as the solution

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.