Skip to content

1681-engine / index / AnimStateDef

Interface: AnimStateDef<Clip> ​

Defined in: src/anim/animStateTypes.ts:15

Type Parameters ​

Type Parameter
Clip extends string

Properties ​

clip ​

ts
clip: Clip;

Defined in: src/anim/animStateTypes.ts:17

The clip this state plays, entered from its first frame.


markers? ​

ts
optional markers?: readonly ClipMarker[];

Defined in: src/anim/animStateTypes.ts:23

Events fired as playback reaches frames of the clip (positions in the clip, 0-based).


speed? ​

ts
optional speed?: number;

Defined in: src/anim/animStateTypes.ts:19

Playback speed (default 1).


speedParam? ​

ts
optional speedParam?: string;

Defined in: src/anim/animStateTypes.ts:21

A number parameter the speed is multiplied by (its size: a run cadence that follows the body's speed).

Released under the MIT License.