Animation

class Animation.Animation()

Structure encapsulating a specific animation

Constructors

Animation.Animation.constructor()
Animation(name: string): Animation

Creates a new, empty Animation

Parameters

name: string

friendly name for the animation

Returns: Animation

Properties

Animation.Animation.cameraChannels
cameraChannels: CameraChannel[]
Animation.Animation.name
name: string

friendly name for the animation

Animation.Animation.nodeChannels
nodeChannels: NodeChannel[]
Animation.Animation.pivotPoints
pivotPoints: Map

Methods

Animation.Animation.createCameraChannel()
createCameraChannel(name: string, property: CameraProperty, sampler: Sampler): CameraChannel

Creates a new camera animation channel.

Parameters

name: string

friendly name for the channel.

property: CameraProperty

the property that will be animated by this channel.

sampler: Sampler

sampler describing the buffer and interpolation type used.

Returns: CameraChannel

Animation.Animation.createNodeChannel()
createNodeChannel(name: string, target: number, property: NodeProperty, sampler: Sampler): NodeChannel

Creates a new node animation channel.

Parameters

name: string

friendly name for the channel.

target: number

id of node that will receive interpolated values.

property: NodeProperty

the node property that will be animated.

sampler: Sampler

sampler describing the buffer and interpolation type.

Returns: NodeChannel

Animation.Animation.deleteChannel()
deleteChannel(channel: (NodeChannel | CameraChannel)): void

Removes a channel from this animation.

Call [[Player.reload]] on any players that are referencing this animation.

Parameters

Returns: void