Communicator.Animation.Animation

 Animation

Structure encapsulating a specific animation

Constructors

constructor

  • Creates a new, empty Animation

    Parameters

    • name: string

      friendly name for the animation

    Returns Animation

Properties

cameraChannels

cameraChannels: CameraChannel[]

name

name: string

nodeChannels

nodeChannels: NodeChannel[]

pivotPoints

pivotPoints: Map<number, Point3>

Methods

createCameraChannel

  • 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

createNodeChannel

  • Creates a new node animation channel.

    Parameters

    • name: string

      friendly name for the channel.

    • target: NodeId

      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

deleteChannel