ParticleSystem isLocal Not Working

ParticleSystem isLocal Not Working !

https://www.babylonjs-playground.com/#LNRAI3#5

Could you detail a bit more ? What would you expect to happen ?

@Deltakosh is off until Monday so I ll have a look into it.

You have to take into account the isLocal value in your updateFunction, as you have overriden the default one.

In the default one, you can find:

if (this.isLocal && particle._localPosition) {
    particle._localPosition!.addInPlace(this._scaledDirection);
    Vector3.TransformCoordinatesToRef(particle._localPosition!, this._emitterWorldMatrix, particle.position);
} else {
    particle.position.addInPlace(this._scaledDirection);
}

So, I think you should do something like:

https://www.babylonjs-playground.com/#LNRAI3#9

That was exactly why I was asking :slight_smile:

Good ! Thank you !