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
| Property | Type | Description | Defined in |
|---|---|---|---|
anim | Animator | The member's clip player; call its update(dt) yourself before crowd.update. | engine/src/animation/crowd.ts:35 |
base | number | Palette 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? | number | Bump when rest changes, so cached poses of the old body are not reused. | engine/src/animation/crowd.ts:31 |
entity | Entity | - | engine/src/animation/crowd.ts:27 |
id | number | Stable, unique among the stamper's movers. | engine/src/animation/crowd.ts:26 |
rest? | EntityModel | The rest model to bake from; defaults to entity.model. Replace it to show damage. | engine/src/animation/crowd.ts:29 |
variant | string | Cache key shared by members that look identical (same variant, undamaged). | engine/src/animation/crowd.ts:33 |
x | number | Where the entity's anchor goes, in world voxels. Fractional values are fine. | engine/src/animation/crowd.ts:42 |
y | number | - | engine/src/animation/crowd.ts:43 |
yaw | number | Radians about +y, 0 facing +z. Stamped members snap to headings buckets. | engine/src/animation/crowd.ts:46 |
z | number | - | engine/src/animation/crowd.ts:44 |