10 lines
304 B
GDScript
10 lines
304 B
GDScript
class_name DebugStartPosition extends Node3D
|
|
|
|
func _physics_process(_delta: float) -> void:
|
|
for node in get_tree().get_nodes_in_group(&'player'):
|
|
if node is Node3D:
|
|
var node3d := node as Node3D
|
|
node3d.global_position = global_position
|
|
node3d.global_rotation = global_rotation
|
|
queue_free()
|