Renderer · interface

BoneAnimationClip

A clip, as a caller hands it to createBoneAnimation.

Explained in Hello world.

interface BoneAnimationClip
import type { BoneAnimationClip } from '@driftengine/core';

Properties

NameTypeDescription
bonesreadonlynumberBones each frame holds.
framesreadonlynumberFrames, played in order and looped.
framesPerSecondreadonlynumber
placesreadonlyFloat32ArrayWhere each bone puts what it carries: three floats a bone, bone by bone, frame by frame.
turnsreadonlyFloat32ArrayEach bone's turn: a unit quaternion, x y z w, laid out as places is.
boneScalereadonlyoptionalnumberHow many bones one unit of the second coordinates' u counts: bones unless given.