zouarino

stop the mesh animation (autoAnimate)

Recommended Posts

 
I want to stop the animation but this code doesn't work 
please help my.
 
 var createScene = function () {
    var scene = new BABYLON.Scene(engine);
 
    var camera = new BABYLON.ArcRotateCamera("Camera", 3 * Math.PI / 2, Math.PI / 8, 50, BABYLON.Vector3.Zero(), scene);
 
    camera.attachControl(canvas, false);
 
    var light = new BABYLON.HemisphericLight("hemi", new BABYLON.Vector3(0, 1, 0), scene);
 
     BABYLON.SceneLoader.ImportMesh("a", "scenes/", "ww.babylon", scene, function (newMeshes) {
     
     newMeshes[0].position = BABYLON.Vector3.Zero();
     newMeshes[0].autoAnimate = false;
     newMeshes[0].autoAnimateLoop = false;
 
 
    
});
 
 
       
 
    return scene;
}

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.