Implemented physics interpolation

This commit is contained in:
2024-02-27 21:05:55 +01:00
parent ca7fa120ea
commit 489a14061a
23 changed files with 226 additions and 68 deletions

View File

@ -24,7 +24,7 @@ func _process(delta):
if !collected_by:
return
global_position = Math.damp(global_position, Global.player.global_position + Vector3.UP, 0.75 * delta)
global_position = Math.damp_vector(global_position, Global.player.global_position + Vector3.UP, 0.75 * delta)
func on_body_entered(body: Node3D):
if not body is Player: