Improved lerp interpolation
This commit is contained in:
@ -8,7 +8,7 @@ func _process(delta):
|
||||
return
|
||||
|
||||
if interpolate:
|
||||
position = lerp(position, Global.player.position, speed * delta)
|
||||
position = Math.damp(position, Global.player.position, speed * delta)
|
||||
else:
|
||||
position = Global.player.position
|
||||
|
||||
|
Reference in New Issue
Block a user