Godot Version
4.4.1
Question
What keyword would I need to use to ease the previous mouse position to the current mouse position? I’ve already tried ease, Interpolate, Vector2.Interpolate and more that i cannot remember.
4.4.1
What keyword would I need to use to ease the previous mouse position to the current mouse position? I’ve already tried ease, Interpolate, Vector2.Interpolate and more that i cannot remember.
Are you searching for lerp()
?
Vector2.lerp()
Vector3.lerp()
lerp()
in global scopeNote that these methods return new values, so to interpolate a position you would need
position = position.lerp(to, 0.5)
Also Vector2.move_toward