Skip to content

@modoki/engine / index / applyClipDeform

Function: applyClipDeform()

applyClipDeform(world, rootId, clip, time, index?): number

Apply clip's deform tracks (if any) at time for the animator rooted at rootId. Pass a prebuilt index when posing many animators in one frame. Returns the number of deform tracks applied (0 for a scalar-only clip — the fast path: no allocation, no entity-index build).

Parameters

world

World

rootId

number

clip

AnimationClipDef

time

number

index?

EntityIndex

Returns

number

Built with Modoki.