voxolith

CrowdMember

One animated entity in a Crowd. The crowd reads these fields on every update and never writes them: the game owns the member, moves it and advances its animator.

Defined in: engine/src/animation/crowd.ts:24

Properties

PropertyTypeDescriptionDefined in
animAnimatorThe member's clip player; call its update(dt) yourself before crowd.update.engine/src/animation/crowd.ts:35
basenumberPalette base for this member's roles: a world slot from PaletteAllocator when stamping, an instance palette (layer.palettes.of) when drawing instances.engine/src/animation/crowd.ts:40
damage?numberBump when rest changes, so cached poses of the old body are not reused.engine/src/animation/crowd.ts:31
entityEntity-engine/src/animation/crowd.ts:27
idnumberStable, unique among the stamper's movers.engine/src/animation/crowd.ts:26
rest?EntityModelThe rest model to bake from; defaults to entity.model. Replace it to show damage.engine/src/animation/crowd.ts:29
variantstringCache key shared by members that look identical (same variant, undamaged).engine/src/animation/crowd.ts:33
xnumberWhere the entity's anchor goes, in world voxels. Fractional values are fine.engine/src/animation/crowd.ts:42
ynumber-engine/src/animation/crowd.ts:43
yawnumberRadians about +y, 0 facing +z. Stamped members snap to headings buckets.engine/src/animation/crowd.ts:46
znumber-engine/src/animation/crowd.ts:44

On this page