Improved lerp interpolation

This commit is contained in:
2024-02-16 12:51:05 +01:00
parent 2a53a731db
commit a374acc4f0
6 changed files with 16 additions and 6 deletions

View File

@ -44,4 +44,4 @@ func _process(delta):
if abs(distance - position.z) < 0.01:
return
position.z = lerpf(position.z, distance, zoom_interpolation * delta)
position.z = Math.dampf(position.z, distance, zoom_interpolation * delta)