numEntities', 2, 100).name("Num Of Entities").step(1);
       quantity.onFinishChange(function(value) {
           for(var i=0;i<entities.length;i++)
           {
               scene.remove(entities[i])
               entities[i].mesh.geometry.dispose()
               entities[i].mesh.material.dispose()
           }

           entities=[]

           for(var i=0;i<value;i++)
           {
               var mesh=new THREE.Mesh(geometry, material)
               mesh.position.setY(100)
               var en