How to change position of character in c# 3d

Godot Version

4

Question

Ive made a play area (so to speak) a player and a "Death plane" underneath the play area. When the player comes in contact with the death plane it should send out a signal called Hit() to player.cs. In player.cs there is a method called OnPlayerHit() which I need to reset the players position to 0, 0, 0. And thats the part i need help with.

What do you mean? Doesn’t this work?

func _on_player_hit() -> void:
    global_position = Vector3.ZERO
    reset_physics_interpolation()

You should call Node.reset_physics_interpolation() after changing its transform when teleporting an object.