2024-09-30 20:50:05 -07:00
|
|
|
extends Node3D
|
|
|
|
class_name Tile
|
|
|
|
|
|
|
|
|
|
|
|
@onready var path = $MainPath as Path3D
|
|
|
|
@onready var follow = $MainPath/Follow as PathFollow3D
|
2024-10-01 19:45:11 -07:00
|
|
|
@onready var spawn_point = $SpawnPoint as Marker3D
|
2024-09-30 20:50:05 -07:00
|
|
|
|
|
|
|
var length: float:
|
2024-10-01 19:45:11 -07:00
|
|
|
get = get_length
|
2024-09-30 20:50:05 -07:00
|
|
|
|
|
|
|
func _ready():
|
|
|
|
pass # Replace with function body.
|
|
|
|
|
|
|
|
|
|
|
|
func _process(delta):
|
|
|
|
pass
|
2024-10-01 19:45:11 -07:00
|
|
|
|
|
|
|
|
|
|
|
func get_length():
|
|
|
|
return path.curve.get_baked_length()
|
|
|
|
|
|
|
|
|
|
|
|
func has_next_path() -> bool:
|
|
|
|
return false
|
|
|
|
|
|
|
|
|
|
|
|
func get_next_path():
|
|
|
|
return null
|