mtd/Scripts/path_visual_thing.gd

18 lines
374 B
GDScript3
Raw Normal View History

2024-02-22 06:22:22 +11:00
class_name PathVisualThing extends PathFollow3D
@export var speed: float = 0.5
@export var world_model: Node3D
@export var minimap_model: Node3D
func _process(delta: float) -> void:
progress += speed * delta
2024-02-22 06:22:22 +11:00
func set_world_visible(value: bool) -> void:
world_model.set_visible(value)
2024-02-22 06:22:22 +11:00
func set_minimap_visible(value: bool) -> void:
minimap_model.set_visible(value)