Here is an example of my code (self has been simplified).
I want to scale down the explosion to roughly 1/4 it’s default scale.
thanks
var self = {};
BABYLON.ParticleHelper.CreateAsync("explosion", scene).then((set) => {
//set.start();
self.exploder = set;
self.exploder.setPostion = setPostion;
});
}
this.explode = function(position){
var position = position.clone();
self.exploder.setPostion(position);
self.exploder.start();
}
function setPostion(posVector){
this.systems.map(sys=>{
sys.worldOffset = posVector;
})
}