Fixed particle position

This commit is contained in:
2024-02-12 18:44:54 +01:00
parent 43e0825aff
commit cceb6678f5
3 changed files with 9 additions and 6 deletions

View File

@ -21,7 +21,7 @@ func _process(delta):
if !collected_by:
return
position = lerp(position, Global.player.position + Vector3.UP, 1.0 * delta)
global_position = lerp(global_position, Global.player.global_position + Vector3.UP, 1.0 * delta)
func on_body_entered(body: Node3D):
if body is Player: