Skip to main content

CurveToOptions

Index

Properties

controlPoints

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

Curve in world coordinates to animate towards

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

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
Page Options