voxolith

@voxolith/engine/animation

@voxolith/engine/animation: rigs, clips, poses and damage for animated entities.

Headless and pure. A generator authors a rigged entity (a rest model whose voxels know their bone, a rig, clips at 12 frames per second); this module plays the clips (makeAnimator), turns a pose into bone matrices (poseMatrices), bakes the posed voxel model (bakePose), and damages the rest model (wound exposes the interior, sever cuts a limb off as a separate piece).

Getting the posed model into the world is the host's job: stamp it with makeBrickStamper from the engine barrel, or draw it as an instance. makeCrowd does either for many animated entities at once, with a pose cache, a bake budget and distance LOD.

Interfaces

Type Aliases

Variables

Functions

On this page