MMD animation will loop after ended. Is there any way to stop the loop?
I don’t want the animation loop again. Just play one time.
I can just pause/play when the animation is not ended, but I don’t know how to detect the whole animation is ended or not.
Hope someone know the answer. A lot of thanks!
Here is the code.
function animate() {
requestAnimationFrame( animate );
render();
}
function render() {
if (status == "play"){
helper.update( clock.getDelta() );
}
effect.render( scene, camera );
}