Skip to content

1681-engine / index / RigPose

Interface: RigPose ​

Defined in: src/rig/rigTypes.ts:13

A pose of the humanoid rig (a JSON object of bone angles). Every field is optional: a pose that leaves one out takes it from the pose it is laid over (a guard only moves the weapon arm, an attack keeps the running legs).

Properties ​

armB? ​

ts
optional armB?: Limb;

Defined in: src/rig/rigTypes.ts:17


armBFront? ​

ts
optional armBFront?: boolean;

Defined in: src/rig/rigTypes.ts:35

The far arm crosses in front of the body (drawing a bow with both hands).


armF? ​

ts
optional armF?: Limb;

Defined in: src/rig/rigTypes.ts:16


breathe? ​

ts
optional breathe?: boolean;

Defined in: src/rig/rigTypes.ts:32

Chest expansion and delayed cloth sway of the breathing cycle.


by? ​

ts
optional by?: number;

Defined in: src/rig/rigTypes.ts:15

Pixels the chest (torso, head, shoulders) sits below its rest height; negative rises.


curl? ​

ts
optional curl?: [number, number];

Defined in: src/rig/rigTypes.ts:39

Tumbling: the torso is a curled ball centred here (grid pixels) instead of standing.


face? ​

ts
optional face?: Face;

Defined in: src/rig/rigTypes.ts:26


headDx? ​

ts
optional headDx?: number;

Defined in: src/rig/rigTypes.ts:24

Offset of the head from the chest.


headDy? ​

ts
optional headDy?: number;

Defined in: src/rig/rigTypes.ts:25


hipDx? ​

ts
optional hipDx?: number;

Defined in: src/rig/rigTypes.ts:21

Offset of both hips from their rest place.


hipDy? ​

ts
optional hipDy?: number;

Defined in: src/rig/rigTypes.ts:22


legB? ​

ts
optional legB?: Limb;

Defined in: src/rig/rigTypes.ts:19


legF? ​

ts
optional legF?: Limb;

Defined in: src/rig/rigTypes.ts:18


lookBack? ​

ts
optional lookBack?: boolean;

Defined in: src/rig/rigTypes.ts:28

The head faces backwards.


smearArm? ​

ts
optional smearArm?: Limb;

Defined in: src/rig/rigTypes.ts:37

Arm the front arm just swept through, left as a translucent smear.


sway? ​

ts
optional sway?: number;

Defined in: src/rig/rigTypes.ts:33


trail? ​

ts
optional trail?: number;

Defined in: src/rig/rigTypes.ts:30

Pixels the cape and ponytail stream behind while running.

Released under the MIT License.