MotionContext
此内容尚不支持你的语言。
Defined in: animation/motion.ts:135
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:137
extractRootMotion
Section titled “extractRootMotion”extractRootMotion:
boolean
Defined in: animation/motion.ts:182
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:138
resolveJoint
Section titled “resolveJoint”resolveJoint:
JointResolver
Defined in: animation/motion.ts:175
The joint path names on the rig being animated. A driver goes through
here rather than resolving a childPath itself: a rig with an avatar spells
its joints its own way, and that translation has to reach every reader of
a path or a clip drives half a skeleton.
world:
World
Defined in: animation/motion.ts:136
Methods
Section titled “Methods”borrowDelta()
Section titled “borrowDelta()”borrowDelta():
RootMotionDelta
Defined in: animation/motion.ts:167
Borrow a displacement to combine nested ones into; hand it back.
Returns
Section titled “Returns”borrowMix()
Section titled “borrowMix()”borrowMix():
WeightedPose[]
Defined in: animation/motion.ts:164
Borrow a list to gather weighted poses into. Its entries are reused, so a caller fills a PREFIX and passes the count on rather than truncating it.
Returns
Section titled “Returns”WeightedPose[]
borrowPose()
Section titled “borrowPose()”borrowPose():
Pose
Defined in: animation/motion.ts:158
Borrow scratch for composing nested samples; hand it back with releasePose. Pooled rather than owned by a driver, because a blend nested inside a blend samples while its parent’s scratch is still live.
Returns
Section titled “Returns”Pose
drive()
Section titled “drive()”drive(
motion,enter):void
Defined in: animation/motion.ts:140
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:146
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:150
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:142
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:148
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
releaseDelta()
Section titled “releaseDelta()”releaseDelta(
delta):void
Defined in: animation/motion.ts:168
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
releaseMix()
Section titled “releaseMix()”releaseMix(
mix):void
Defined in: animation/motion.ts:165
Parameters
Section titled “Parameters”WeightedPose[]
Returns
Section titled “Returns”void
releasePose()
Section titled “releasePose()”releasePose(
pose):void
Defined in: animation/motion.ts:159
Parameters
Section titled “Parameters”Pose
Returns
Section titled “Returns”void
rootDelta()
Section titled “rootDelta()”rootDelta(
motion,span,out):boolean
Defined in: animation/motion.ts:152
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:144
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