All Downloads are FREE. Search and download functionalities are using the official Maven repository.

info.laht.threekt.animation.AnimationMixer.kt Maven / Gradle / Ivy

The newest version!
@file:JsQualifier("THREE")

package info.laht.threekt.animation

import info.laht.threekt.core.Object3D

/**
 * The AnimationMixer is a player for animations on a particular object in the scene.
 * When multiple objects in the scene are animated independently, one AnimationMixer may be used for each object.

 * For an overview of the different elements of the three.js animation system see the "Animation System" article
 * in the "Next Steps" section of the manual.
 */
open external class AnimationMixer(
        root: Object3D
) {

    var time: Double
    var timeScale: Double

    fun clipAction(clip: AnimationClip, optionalRoot: Object3D = definedExternally) : AnimationClip
    fun existingAction(clip: AnimationClip, optionalRoot: Object3D = definedExternally) : AnimationClip

    fun getRoot() : Object3D

    fun stopAllAction()

    fun update(deltaTimeInSeconds: Number)

    fun uncacheClip(clip: AnimationClip)

    fun unchacheRoot(root: Object3D)

    fun uncacheAction(clip: AnimationClip, optionalRoot: Object3D)

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy