Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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