Skip to content

MotionRegistry

Defined in: animation/motion.ts:235

The drivers one App knows. Per App and not global because a driver reaches live per-App state (the timeline’s player flags, spine’s manager), which a second App in the same process must not share.

new MotionRegistry(): MotionRegistry

MotionRegistry

context(world, entity, params, resolveJoint?): MotionContext

Defined in: animation/motion.ts:264

The context for driving entity this tick, REUSED across entities: the alternative is an object and three closures per animated entity per frame. A driver must not keep it — it describes only the call it was handed to.

World

number

MotionParams

JointResolver

MotionContext


driverFor(motion): MotionDriver<AnimatorMotion> | undefined

Defined in: animation/motion.ts:255

AnimatorMotion

MotionDriver<AnimatorMotion> | undefined


has(kind): boolean

Defined in: animation/motion.ts:251

string

boolean


register<M>(kind, driver): void

Defined in: animation/motion.ts:243

M extends AnimatorMotion

M["kind"]

MotionDriver<M>

void


unregister(kind): void

Defined in: animation/motion.ts:247

string

void