Skip to content

Components

Path

An authored curve for something to move along: a lift's route between floors, a patrol's loop round a gantry, a camera sweep. Add a Path Follower to walk it, and turn on Smooth to round off its corners.

On this page

Add it

+ Add node → Path creates a node with it already on. Already have a node for it? Add component → PathComponent.

From a script

A script on the same node writes these fields by name. PathComponent is the name to pass.

rgs
set_flag("PathComponent", "closed", false);
set_flag("PathComponent", "smooth", false);

Fields

FieldScript nameKindDefaultWhat it does
PointspointslistemptyThe control points, in order.
ClosedclosedcheckboxoffWhether the end joins back to the start.
SmoothsmoothcheckboxoffWhether the corners are smoothed.