giants-godot/scenes/intro_island/MainMenu.gd
2021-10-01 15:50:16 +02:00

15 lines
342 B
GDScript

extends Spatial
tool
onready var logo = $Logo
onready var camera = $Camera
func _ready():
pass
func _process(delta):
logo.transform = camera.global_transform.translated(Vector3.FORWARD * 200)
logo.translate(Vector3(0, 50, 0))
logo.look_at(camera.translation, Vector3.UP)
logo.rotation = camera.rotation + Vector3(deg2rad(-90), 0, 0)