This repository has been archived on 2022-01-09. You can view files and clone it, but cannot push or open issues/pull-requests.
liblast/LevelComponents/SpawnPoint.gd

6 lines
141 B
GDScript

extends Node3D
func spawn(player):
player.translation = player.get_parent().to_local(global_transform.origin)
player.velocity = Vector3()