Reply To: Nonlinear moveTowards()

Forum Archive Nonlinear moveTowards() Reply To: Nonlinear moveTowards()

#29590
Jonathan Gonzalez
Participant

    What you’re looking for is damping of some sort. Lerp is linear, literally stands for Linear Interpolation so it doesn’t have smoothing involved. Smooth Damp can create the same effect but on a “curve”. So it allows for a more gradual change in speed. Check out the documentation here: https://docs.unity3d.com/ScriptReference/Vector3.SmoothDamp.html