18 lines
284 B
GDScript3
18 lines
284 B
GDScript3
|
extends Node3D
|
||
|
class_name Tile
|
||
|
|
||
|
|
||
|
@onready var path = $MainPath as Path3D
|
||
|
@onready var follow = $MainPath/Follow as PathFollow3D
|
||
|
|
||
|
var length: float:
|
||
|
get:
|
||
|
return path.curve.get_baked_length() as float
|
||
|
|
||
|
func _ready():
|
||
|
pass # Replace with function body.
|
||
|
|
||
|
|
||
|
func _process(delta):
|
||
|
pass
|