I received a model of a tractor / crane arm. It is boned and animated. I exported this crane arm out of 3DS Max as a glTF. When I import it into BabylonJS, the animation begins playing immediately. I would like import the crane arm and not have the animation play immediately. I have a "Play" button and I'd like the animation to start from frame 0 when clicked. I'd like the animation to stop and return back to frame 0 when the button is clicked again. Is creating a Play / Stop animation button fairly basic (loader.beginAnimation())? Do I have to work with skeletons? Below is my code:
var loader = BABYLON.SceneLoader.ImportMesh("", "models/", "CraneArm.gltf", scene, function (newMeshes) {
});
document.getElementById("AddOars").addEventListener("click",function () {
});