generated from krampus/template-godot4
11 lines
170 B
GDScript3
11 lines
170 B
GDScript3
|
@tool
|
||
|
extends Node3D
|
||
|
|
||
|
@export var target: Node3D
|
||
|
|
||
|
|
||
|
func _process(_delta: float) -> void:
|
||
|
if target:
|
||
|
look_at(target.global_position, Vector3.UP, true)
|
||
|
rotation.x = 0
|