Skip to content

anim-format (runtime format) / skinnedPulls

Function: skinnedPulls() ​

ts
function skinnedPulls(
   rig, 
   posed, 
   skin, 
   rest, 
   own, 
   toRig
): number[] | null;

The pulls a skinned mesh is DRAWN with: rest = its rest points, own = its own pulls (the item's d), toRig = the mesh's own space → the rig's (its layer's matrix × its own). Null = nothing moved (draw own).

Parameters ​

ParameterType
rigAnimRig
posedReadonlyMap<string, PosedBone<AnimBone>>
skinAnimSkin
restreadonly number[]
ownreadonly number[] | null | undefined
toRigreadonly number[]

Returns ​

number[] | null

HereSplash — 2D animation for the web