AddOptions

interface AddOptions(source)

Properties

Link copied to clipboard

If defined, computes the local animation time for this animation.

Link copied to clipboard
abstract var delay: Double?

The delay, in seconds, from startTime to start playing. This will only affect the animation if options.loop is ModelAnimationLoop.NONE. Default value - 0.0

Link copied to clipboard
abstract var index: Int?

The glTF animation index that identifies the animation. Must be defined if options.name is undefined.

Link copied to clipboard
abstract var loop: ModelAnimationLoop?

Determines if and how the animation is looped. Default value - ModelAnimationLoop.NONE

Link copied to clipboard
abstract var multiplier: Double?

Values greater than 1.0 increase the speed that the animation is played relative to the scene clock speed; values less than 1.0 decrease the speed. Default value - 1.0

Link copied to clipboard
abstract var name: String?

The glTF animation name that identifies the animation. Must be defined if options.index is undefined.

Link copied to clipboard
abstract var removeOnStop: Boolean?

When true, the animation is removed after it stops playing. This will only affect the animation if options.loop is ModelAnimationLoop.NONE. Default value - false

Link copied to clipboard
abstract var reverse: Boolean?

When true, the animation is played in reverse. Default value - false

Link copied to clipboard
abstract var startTime: JulianDate?

The scene time to start playing the animation. When this is undefined, the animation starts at the next frame.

Link copied to clipboard
abstract var stopTime: JulianDate?

The scene time to stop playing the animation. When this is undefined, the animation is played for its full duration.