Jump to content

stop the mesh animation (autoAnimate)


zouarino
 Share

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;
}

 

Link to comment
Share on other sites

  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...