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
| Parameter | Type | Description |
|---|---|---|
clip | Clip | - |
t | number | - |
boneCount | number | - |
out? | Pose | Pose to write into, to avoid allocating; it is overwritten and returned. |
Returns
restPose()
A pose with every bone at rest (identity rotations, no root offset).
sever()
Cut a bone and everything below it off the model. The stump and the cut face of the piece get the rim role (blood, raw flesh) when given. Pure: the input model is not changed, and throwing the piece around is the game's job.