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
|
2023-11-08 14:28:55 +11:00
|
|
|
|
|
|
|
|
|
|
|
func _process(delta: float) -> void:
|
|
|
|
progress += speed * delta
|
|
|
|
|
|
|
|
|
2024-02-22 06:22:22 +11:00
|
|
|
func set_world_visible(value: bool) -> void:
|
2023-11-08 14:28:55 +11:00
|
|
|
world_model.set_visible(value)
|
|
|
|
|
|
|
|
|
2024-02-22 06:22:22 +11:00
|
|
|
func set_minimap_visible(value: bool) -> void:
|
2023-11-08 14:28:55 +11:00
|
|
|
minimap_model.set_visible(value)
|