Skip to main content

CurveToOptions

Index

Properties

controlPoints

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

Bezier Curve in world coordinates to animate towards

The start control point is assumed to be the actor's current position

duration

duration: 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

Default 4

Page Options