Skip to content

Instantly share code, notes, and snippets.

transform.position = Vector3.lerp(transform.position, target.position, Time.deltaTime)
// Or sometimes with an arbitrary multiplier to time, changing the lerp rate.
float lerpMod = ???; // Some formula
transform.position = Vector3.lerp(transform.position, target.position, Time.deltaTime * lerpMod)