Skip to content

PathFollowerData

Defined in: sdk/src/spline/splinePlugin.ts:37

The fields of the PathFollower component.

distance: number

Defined in: sdk/src/spline/splinePlugin.ts:43

How far along the curve it has gone, in world units. Written each frame; set it to start part-way along.


mode: number

Defined in: sdk/src/spline/splinePlugin.ts:45

PathMode.


orient: number

Defined in: sdk/src/spline/splinePlugin.ts:47

PathOrient.


playing: boolean

Defined in: sdk/src/spline/splinePlugin.ts:49

Whether it is moving. A Once follower stops itself at the end.


speed: number

Defined in: sdk/src/spline/splinePlugin.ts:41

World units a second along the curve; negative runs it backwards.


spline: number

Defined in: sdk/src/spline/splinePlugin.ts:39

The entity that holds the Spline to follow.