Skip to content

API / IAnimatable

Interface: IAnimatable ​

Defined in: animation/IAnimatable.ts:37

Play animation interface. (Both Armature and Wordclock implement the interface) Any instance that implements the interface can be added to the Worldclock instance and advance time by Worldclock instance uniformly.

Properties ​

clock ​

ts
clock: WorldClock;

Defined in: animation/IAnimatable.ts:66

The Wordclock instance to which the current belongs.

Example ​

ts
    armature.clock = factory.clock; // Add armature to clock.
    armature.clock = null; // Remove armature from clock.

stopped ​

ts
stopped: boolean;

Defined in: animation/IAnimatable.ts:68

Methods ​

advanceTime() ​

ts
advanceTime(passedTime: number): void;

Defined in: animation/IAnimatable.ts:48

Advance time.

Parameters ​

ParameterTypeDescription
passedTimenumberPassed time. (In seconds)

Returns ​

void

Released under the MIT License.