Skip to content

@tmrw-realityos/charmDocs


@tmrw-realityos/charm / Animation

Class: Animation

Constructors

new Animation()

new Animation(): Animation

Returns

Animation

Properties

duration

duration: number = 0

Defined in

packages/charm/src/scene/animation.ts:433


name

name: string = ""

Defined in

packages/charm/src/scene/animation.ts:432


tracks

tracks: Track[] = []

Defined in

packages/charm/src/scene/animation.ts:434

Methods

addTrack()

addTrack(track, group): void

Parameters

track: Track

group: boolean = true

Returns

void

Defined in

packages/charm/src/scene/animation.ts:436


applyAnimation()

applyAnimation(rootNode, time, interpolation): void

Parameters

rootNode: Node

time: number

interpolation: InterpolationMode = InterpolationMode.LINEAR

Returns

void

Defined in

packages/charm/src/scene/animation.ts:449