All checks were successful
Deploy Promiscuity Auth API / deploy (push) Successful in 49s
Deploy Promiscuity Character API / deploy (push) Successful in 48s
Deploy Promiscuity Crafting API / deploy (push) Successful in 48s
Deploy Promiscuity Inventory API / deploy (push) Successful in 47s
Deploy Promiscuity Locations API / deploy (push) Successful in 47s
Deploy Promiscuity Mail API / deploy (push) Successful in 47s
Deploy Promiscuity World API / deploy (push) Successful in 47s
k8s smoke test / test (push) Successful in 10s
18 lines
405 B
GDScript
18 lines
405 B
GDScript
extends Node3D
|
|
|
|
@export var player_spawn_position := Vector3(0.0, 2.0, 0.0)
|
|
|
|
@onready var _player: RigidBody3D = get_node_or_null("Player") as RigidBody3D
|
|
|
|
|
|
func _ready() -> void:
|
|
_move_player_to_spawn()
|
|
|
|
|
|
func _move_player_to_spawn() -> void:
|
|
if _player == null:
|
|
return
|
|
_player.global_position = player_spawn_position
|
|
_player.linear_velocity = Vector3.ZERO
|
|
_player.angular_velocity = Vector3.ZERO
|