16 lines
395 B
GDScript3
16 lines
395 B
GDScript3
|
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)
|