Obi Official Forum
Interested in fluid to fluid collision - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Fluid (https://obi.virtualmethodstudio.com/forum/forum-3.html)
+--- Thread: Interested in fluid to fluid collision (/thread-1018.html)



Interested in fluid to fluid collision - itsallgoodgames - 27-03-2019

Are there any fluid to fluid collision demos in the plugin?

I'm interested in 2 unrelated ideas.

Lava fluid collide with water fluid to to destroy both particles and instantiate a gas fluid.
Collide "red" fluid with "blue" fluid  particles to create "purple" fluid particles.

I assume you cannot modify properties of an existing fluid so you'd have to instantiate particles of a the third fluid.


RE: Interested in fluid to fluid collision - josemendez - 15-04-2019

(27-03-2019, 10:27 AM)itsallgoodgames Wrote: Are there any fluid to fluid collision demos in the plugin?

I'm interested in 2 unrelated ideas.

Lava fluid collide with water fluid to to destroy both particles and instantiate a gas fluid.
Collide "red" fluid with "blue" fluid  particles to create "purple" fluid particles.

I assume you cannot modify properties of an existing fluid so you'd have to instantiate particles of a the third fluid.

Hi there,

Yes, you can change any of the existing properties of the fluid at runtime, even per-particle. See the FluidMixing sample scene included in the asset for a demo of two fluids (blue and yellow) colliding and chemically reacting to create a third (purple) fluid.

The "Raclette" demo scene shows a fluid changing its viscosity dynamically in response to collision with certain colliders.