12-12-2020, 02:47 PM
(12-12-2020, 01:55 PM)netstorm Wrote: I've read documentation about Collisions
Here is the text from docs: "To retrieve the particle-particle contact list, subscribe to its OnParticleCollision event."
So I tried to do this
And there is 0 contacts for particles. For colliders works fine.
To play sounds, when particles collide, I need information about collisions between them: colliding impulses, for example. How can I get this information another way, insted of particles collisions event, as it is not working?
Thanks!
Fluid particles do not collide with each other, as they are not solid. If they were, they wouldn’t behave like fluid at all. Only granulars (sand, pebbles) collide eith each other. Fluids only collide with colliders, you can get these contacts from the OnCollision event.
Fluids use density constraints to maintain constant density (mass per volume unit). You can use per particle vorticity to determine regions where fluid energy is high. Look at the FluidFoam sample scene for an example of this.