Skip to main content

Type Alias: AnimationSequenceController

type AnimationSequenceController = {
animationSequenceRef: AssetRef<AnimationSequence>;
entities: Record<UUID, EntityRef>;
playbackSpeed: Float;
startOffset: Float;
stopOffset: Float;
loop: boolean;
playState: UInt8;
seekOffset: Float;
};

Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:49

Animation sequence controller with reference to an animation sequence and assigned entities.

Properties

animationSequenceRef

animationSequenceRef: AssetRef<AnimationSequence>;

Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:53

A reference to an animation sequence.


entities

entities: Record<UUID, EntityRef>;

Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:57

Track to entity map. Key is track uuid, value is the entity to assign to it.


playbackSpeed

playbackSpeed: Float;

Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:62

The speed at which to play the animation sequence. The sequence will go in reverse if set to a value lower than 0.

Default Value

1;

startOffset

startOffset: Float;

Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:67

The normalized offset at which to start the playback.

Default Value

0;

stopOffset

stopOffset: Float;

Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:72

The normalized offset at which to stop the playback (or loop back to start offset).

Default Value

1;

loop

loop: boolean;

Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:77

Whether or not the animation loops when it reaches the end of the sequence.

Default Value

false;

playState

playState: UInt8;

Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:82

The play state of the animation.

Default Value

0;

seekOffset

seekOffset: Float;

Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:87

The offset to seek at next frame. Must be in the [0, 1] range.

Default Value

-1;