MeshParticleEmitter Weirdness

Hola,

Not sure if I am using this wrong, but I thought the point of the MeshParticleEmitter was to emit only from the faces of the mesh. It seems to also be emitting from the empty spaces, between the mesh, is this expected behavior?

Also, just out of curiosity of reading the implementation, is this code doing a random barycentric coordinate generation? So ideally, the resulting point will be a random point anywhere on a random face, and not just the vertices?

This is correct, we emit from the faces not the vertices

Ok, so it expected behavior in my original PG? It looks like points are emitting from empty spaces – spots that aren’t faces…

Hum no this is suspicious
Let me double check that :slight_smile:

That was a nasty one!
Fix MeshparticleEmitter bug by deltakosh · Pull Request #16554 · BabylonJS/Babylon.js

Thanks a lot for the report!

1 Like

Heck yeah! Thanks so much!