Update particleSystem position instant

Hi, I’m trying to move a particle system with drag, but I want to move it without the trace, like a normal object from one position to other, and I cann’t figure it out;
Here is https://playground.babylonjs.com/#QCGY56#2. Just click and drag the plane.
Any sugestions are welcome. Thanks

Hey @MarianG

The particle system defaults into emitting particles in world space. So you have to specify that you want them emitted in local space relative to the emitter. Like this:

particleSystem.isLocal = true;

I updated your playground to show the result:
https://playground.babylonjs.com/#QCGY56#3

Hope this answers your question!

1 Like

One line :sweat_smile: as expected.
Thank you @PirateJC

1 Like