voxolith

sampleClip()

Sample a clip at time t seconds (wrapped for looping clips, clamped otherwise), slerping between keys. Bones without a track stay at rest. Clips are authored at 12 fps; sampling at whole frames (frame / 12) is what lets baked poses be cached.

function sampleClip(
   clip: Clip, 
   t: number, 
   boneCount: number, 
   out?: Pose
): Pose;

Defined in: engine/src/animation/pose.ts:54

Parameters

ParameterTypeDescription
clipClip-
tnumber-
boneCountnumber-
out?PosePose to write into, to avoid allocating; it is overwritten and returned.

Returns

Pose

On this page