generated from krampus/template-godot4
All checks were successful
linting & formatting / build (push) Successful in 22s
11 lines
312 B
GDScript
11 lines
312 B
GDScript
@tool
|
|
class_name TranslatorPath3D extends Path3D
|
|
## Keeps all child elements at the last point on the curve.
|
|
|
|
|
|
func _process(_delta: float) -> void:
|
|
if curve and curve.point_count > 1:
|
|
var endpoint := curve.get_point_position(curve.point_count - 1)
|
|
for c: Node3D in get_children():
|
|
c.position = endpoint
|