Last active
August 15, 2021 02:34
-
-
Save flushpot1125/bb16a93478c4b1b5215417bf30e72c4b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const frameRate = 10; | |
//Animate box with a snippet done in Animation Curve Editor (ACE) | |
BABYLON.Animation.CreateFromSnippetAsync("VKRF2C").then(promiseAnim => { | |
//Load snippet that contains the animations edited and saved in ACE | |
if (promiseAnim.length > 0) { | |
promiseAnim.forEach(element => box.animations.push(element)); | |
}; | |
//Start box move animations | |
scene.beginAnimation(box, 0, frameRate * 43, true); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment