17 lines
401 B
GDScript
17 lines
401 B
GDScript
extends Node3D
|
|
|
|
@export var bug_marker : PackedScene
|
|
@export var follow_node : Node3D
|
|
|
|
|
|
func _ready() -> void:
|
|
var bug_marker_node : Node3D = bug_marker.instantiate() as Node3D
|
|
add_child(bug_marker_node)
|
|
bug_marker_node.enable_info = false
|
|
|
|
func _process(_delta:float) -> void:
|
|
if not visible:
|
|
position = Vector3(0.0, 0.0, 0.0)
|
|
elif follow_node:
|
|
global_position = follow_node.global_position
|