Skip to main content

CurveByOptions

Index

Properties

controlPoints

controlPoints: [control1: Vector, control2: Vector, end: Vector]

Bezier Curve relative to the current actor position to move

durationMs

durationMs: number

Total duration for the action to run

optionalmode

mode?: dynamic | uniform

Dynamic mode will speed up/slow down depending on the curve

Uniform mode will animate at a consistent velocity across the curve

Default: 'dynamic'

optionalquality

quality?: number

Quality when sampling uniform points on the curve. Samples = 4 * quality;

For bigger 'uniform' curves you may want to increase quality to make the motion appear smooth

Default 4

Page Options