giants-godot/scenes/intro_island/MainMenu.gd

16 lines
395 B
GDScript3
Raw Normal View History

2021-09-17 15:04:05 +02:00
extends Spatial
onready var logo = $Logo
onready var camera = $Camera
var playground = preload("res://scenes/playground.tscn")
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)