Renderer · interface
BoneAnimationClip
A clip, as a caller hands it to createBoneAnimation.
Explained in Hello world.
interface BoneAnimationClipimport type { BoneAnimationClip } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
bonesreadonly | number | Bones each frame holds. |
framesreadonly | number | Frames, played in order and looped. |
framesPerSecondreadonly | number | |
placesreadonly | Float32Array | Where each bone puts what it carries: three floats a bone, bone by bone, frame by frame. |
turnsreadonly | Float32Array | Each bone's turn: a unit quaternion, x y z w, laid out as places is. |
boneScalereadonlyoptional | number | How many bones one unit of the second coordinates' u counts: bones unless given. |