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
Raw Normal View History

2021-02-26 20:58:13 +01:00
extends Node3D
2020-06-19 01:30:53 +02:00
func spawn(player):
player.translation = player.get_parent().to_local(global_transform.origin)
player.velocity = Vector3()