API

Class RuntimeAnimation

Defines a runtime animation

Index
_animation: Animation

The animation used by the runtime animation

  • Execute the current animation

    Parameters

    • elapsedTimeSinceAnimationStart: number

      defines the elapsed time (in milliseconds) since the animation was started

    • from: number

      defines the lower frame of the animation range

    • to: number

      defines the upper frame of the animation range

    • loop: boolean

      defines if the current animation must loop

    • speedRatio: number

      defines the current speed ratio

    • weight: number = -1.0

      defines the weight of the animation (default is -1 so no weight)

    Returns boolean

    a boolean indicating if the animation is running

  • Move the current animation to a given frame

    Parameters

    • frame: number

      defines the frame to move to

    • weight: number = -1

      defines the weight to apply to the animation (-1.0 by default)

    Returns void

  • Apply the interpolated value to the target

    Parameters

    • currentValue: any

      defines the value computed by the animation

    • weight: number

      defines the weight to apply to this value (Defaults to 1.0)

    Returns void