Implemented physics interpolation
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user