.linear_interpolate in Godot 4 ??

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Dontavius

This was the piece of code that worked in godot 3.5 but it doesn’t seem to have linear interpolation or am I wrong? ples help

velocity_ = velocity_.linear_interpolate(direction * speed, accel * delta)

1 Like
:bust_in_silhouette: Reply From: Ninfur

It got shortened into lerp

velocity_ = velocity.lerp(direction * speed, accel * delta)
2 Likes