16 lines
424 B
GDScript
16 lines
424 B
GDScript
extends Node3D
|
|
|
|
var alpha = 0.2
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready():
|
|
pass # Replace with function body.
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(delta):
|
|
#rotation=Globals.global_rotate
|
|
$true_level.look_at($true_level.position + Globals.global_down)
|
|
|
|
quaternion = quaternion.slerp($true_level.quaternion, 1 - alpha ** delta)
|