API reference
@voxolith/gen-creature
@voxolith/gen-creature: rigged, animated voxel creatures. A rat first.
The entity is a rest-pose model whose voxels know their bone, a rig and a
set of generated clips (walk, run, idle, sniff, turns, death). Under the fur
there is fat, flesh, muscle, a skeleton, a skull with a brain and organs in
the chest and belly, all out of sight until damage exposes them (see
@voxolith/engine/animation wound and sever).
Interfaces
Type Aliases
Variables
Functions
@voxolith/gen-bush
Previous Page
atScale()
The same creature, sized for a world of voxelsPerMetre (a rat at 100 vox/m comes out at size 0.8, about 50 voxels long). Presets keep their ratios to each other; sizes snap to the 0.05 grid of shape.size and never go below 0.7, where legs would thin to one voxel.