Experimental interface for receiving timeline animation callbacks. Register at the PlayableDirector

interface ITimelineAnimationOverride {
    onTimelinePosition?(director: PlayableDirector, target: Object3D<Object3DEventMap>, time: number, position: Vector3): any;
    onTimelineRotation?(director: PlayableDirector, target: Object3D<Object3DEventMap>, time: number, rotation: Quaternion): any;
}

Methods

  • Parameters

    • director: PlayableDirector

      The director that is playing the timeline

    • target: Object3D<Object3DEventMap>

      The target object that is being animated

    • time: number

      The current time of the timeline

    • position: Vector3

      The evaluated position of the target object at the current time

    Returns any

  • Parameters

    • director: PlayableDirector

      The director that is playing the timeline

    • target: Object3D<Object3DEventMap>

      The target object that is being animated

    • time: number

      The current time of the timeline

    • rotation: Quaternion

      The evaluated rotation of the target object at the current time

    Returns any