@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
- Animator
- BakedPose
- BakeOptions
- Crowd
- CrowdMember
- CrowdOptions
- CrowdStats
- Pose
- PoseCache
- RiggedModel
- Severed
- WoundOptions
Type Aliases
Variables
Functions
@voxolith/engine
Previous Page
bakePose()
Bake a posed voxel model from a rigged rest model and bone matrices. Each posed cell is inverse-mapped to rest space through its bone, so rotated limbs stay solid; a final pass closes the cracks on the outside of bending joints. yaw turns the result about the anchor at any angle, which resamples...