ParticleSystem isLocal Not Working !
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:
That was exactly why I was asking
Good ! Thank you !