- Home /
Flowing water with a fixed volume
I know this probably sounds kind of crazy but is there any way to create actual flowing, physics controlled water than has a fixed volume? So that you could have like a lake and then break open one end and let the water start flowing out of it and eventually drain the lake?
Answer by Peter G · May 25, 2011 at 06:22 PM
Yes it is possible, but you would need to write your own simulation and that would take a boat load of time. And I don't know of anyone who has done it with Unity, but you could implement it yourself and then sell it when you are done.
hmm... interesting. Do you have any ideas on how I could go about doing that though? would I have to write a script that creates a water mesh that form fits itself to the landscape with a certain volume? Would that work? Then if it could move in a direction then the mesh grows? Any ideas? Thanks!
There are plenty of publications on fluid sims out on the web. I don't have any knowledge on the subject so I can't tell you fast or slow for any methods. $$anonymous$$y first guess would be to implement a voxel like system where you make a grid then deter$$anonymous$$e which points are part of the fluid, then create a mesh around them. Its a complicated project though, that doesn't even account for any physics, just drawing the water.
This would probably be a project to not go at alone as it would consume far to much time. I figure your example of draining a lake is just fictional as that would be done best with lowering a box with a watershader and a particle emitter (in case someone wants to do this).
Your answer
Follow this Question
Related Questions
Unity3D Water Bending with Physics 3 Answers
Best solution to make/fake water flow between rooms? 1 Answer
Simulate Large ocean with player built models 0 Answers
How to combine the particle system with the plane? 0 Answers
How to do particle collision 2 Answers