04-08-2021, 09:01 AM
(This post was last modified: 04-08-2021, 09:02 AM by josemendez.)
Hi,
Depends on how many pipes you have, how much fluid you want in them, and how detailed you need the flow to be. Obi is a particle-based simulation, stands to reason that in order to simulate an ocean or even a lake you need hundreds of millions of particles which isn't going to run in realtime in any existing hardware (unless you use particles the size of a car, in which case the fluid will look chunky).
Yes, you can:
- Filter out which fluids should collide with which objects, using collision filtering. This can be set up in-editor or programmatically:
http://obi.virtualmethodstudio.com/manua...sions.html
- How fluids should react to a collision with an object (slide, stick, etc), using collision materials. Again, can set them up in editor or in code:
http://obi.virtualmethodstudio.com/manua...rials.html
- Get a list of all contacts that happened in a frame, and react to them:
http://obi.virtualmethodstudio.com/manua...sions.html
Depends on how many pipes you have, how much fluid you want in them, and how detailed you need the flow to be. Obi is a particle-based simulation, stands to reason that in order to simulate an ocean or even a lake you need hundreds of millions of particles which isn't going to run in realtime in any existing hardware (unless you use particles the size of a car, in which case the fluid will look chunky).
Quote:Is there any way to control water collision with other object by code.
Yes, you can:
- Filter out which fluids should collide with which objects, using collision filtering. This can be set up in-editor or programmatically:
http://obi.virtualmethodstudio.com/manua...sions.html
- How fluids should react to a collision with an object (slide, stick, etc), using collision materials. Again, can set them up in editor or in code:
http://obi.virtualmethodstudio.com/manua...rials.html
- Get a list of all contacts that happened in a frame, and react to them:
http://obi.virtualmethodstudio.com/manua...sions.html