MotionContext
Defined in: animation/motion.ts:107
What a driver is given to act on. drive/finished re-enter the registry, so
a composite motion (a blend) delegates to its chosen child without holding the
registry itself — and therefore without caring what kind that child is.
Properties
Section titled “Properties”entity
Section titled “entity”entity:
number
Defined in: animation/motion.ts:109
extractRootMotion
Section titled “extractRootMotion”extractRootMotion:
boolean
Defined in: animation/motion.ts:131
Whether the animator is taking this motion’s root track as DISPLACEMENT. A driver that can state a root pose must then leave the root’s position and rotation out of what it samples: the same movement written to the entity and handed to the character controller moves it twice.
params
Section titled “params”params:
MotionParams
Defined in: animation/motion.ts:110
world:
World
Defined in: animation/motion.ts:108
Methods
Section titled “Methods”drive()
Section titled “drive()”drive(
motion,enter):void
Defined in: animation/motion.ts:112
Play a nested motion. enter restarts it from the top.
Parameters
Section titled “Parameters”motion
Section titled “motion”boolean
Returns
Section titled “Returns”void
duration()
Section titled “duration()”duration(
motion):number
Defined in: animation/motion.ts:118
One pass of a nested motion in seconds; 0 when it does not say.
Parameters
Section titled “Parameters”motion
Section titled “motion”Returns
Section titled “Returns”number
events()
Section titled “events()”events(
motion,span,out):void
Defined in: animation/motion.ts:122
Append a nested motion’s events over span to out.
Parameters
Section titled “Parameters”motion
Section titled “motion”Returns
Section titled “Returns”void
finished()
Section titled “finished()”finished(
motion):boolean
Defined in: animation/motion.ts:114
Whether a nested motion has run to its end.
Parameters
Section titled “Parameters”motion
Section titled “motion”Returns
Section titled “Returns”boolean
loops()
Section titled “loops()”loops(
motion):boolean
Defined in: animation/motion.ts:120
Whether a nested motion repeats, and so never ends on its own.
Parameters
Section titled “Parameters”motion
Section titled “motion”Returns
Section titled “Returns”boolean
rootDelta()
Section titled “rootDelta()”rootDelta(
motion,span,out):boolean
Defined in: animation/motion.ts:124
A nested motion’s displacement over span; false when it states none.
Parameters
Section titled “Parameters”motion
Section titled “motion”Returns
Section titled “Returns”boolean
sample()
Section titled “sample()”sample(
motion,time,pose):boolean
Defined in: animation/motion.ts:116
Sample a nested motion into pose; false when its kind cannot be sampled.
Parameters
Section titled “Parameters”motion
Section titled “motion”number
Pose
Returns
Section titled “Returns”boolean