AnimationMixer

The class is a player for animations on a particular object called root

Animation Class

The class is a player for animations on a particular object called root

Hierarchy

  • EventDispatcher
    • AnimationMixer

Constructors

  • Constructor

    Parameters

    • root: Object3D

      animation target.

    • useCache: boolean

      optional, default is true. By default, animationAction will be cached with root id and name when clipAction.

    Returns AnimationMixer

Properties

_uuid: string | null
_listeners: Map<Symbol, Listener<never>[]>

Accessors

  • get uuid(): string

    Returns string

  • set uuid(uuid: string): void

    Parameters

    • uuid: string

    Returns void

Methods

  • Adds a listener to an event type.

    Type Parameters

    • T

    Parameters

    • type: EventType<T>

      The type of event to listen to.

    • listener: Listener<T>

      The function that gets called when the event is fired.

    Returns void

  • Only active the listener one times and then off it| it.

    Type Parameters

    • T

    Parameters

    • type: EventType<T>
    • listener: Listener<T>

    Returns void

  • Checks if listener is added to an event type.

    Type Parameters

    • T

    Parameters

    • type: EventType<T>
    • listener: Listener<T>

    Returns boolean

  • Removes a listener from listening list.

    Type Parameters

    • T

    Parameters

    • type: EventType<T>
    • listener: Listener<T>

    Returns void

  • Active the event and call the registered listener.

    Parameters

    • type: EventType<never>

    Returns void

  • Active the event and call the registered listener.

    Type Parameters

    • T

    Parameters

    • type: EventType<T>
    • payload: T

    Returns void

  • Removes all listeners from listening list.

    Returns void

  • Advance the mixer time and update animation

    Parameters

    • deltaTime: number

      delta time in seconds

    Returns void

  • Set the mixer to a specific time and update animation

    Parameters

    • time: number

      time in seconds

    Returns void