Reset of Mesh Explode not working

Hi,

With the below link reference, I explode the meshes in the scene.

Link: Exploding Meshes | Babylon.js Documentation

After, I want to reset back.
Code:
//Apply Explode
newExplosion = new BABYLON.MeshExploder(scene.meshes);
newExplosion.explode(0.5);

//To Reset Explode
newExplosion = new BABYLON.MeshExploder(scene.meshes);
newExplosion.explode(0);

Reset is not working. The scene is still in explode.
Kindly help me in this issue.

Thanks.

Let me take a look :slight_smile:

@dineshax100 do you happen to have the playground you are adding this code too?

Hi,

On click “Reset Explode”, meshes not reset.

Thanks

Is this what you were wanting to do? I commented one of the lines.

2 Likes

Thanks, Now it’s working.