Water leaking from one cup to another. How could be achieved?

Hello,
I am wandering how can I create in Unity simulation for transfer of water from one glass cup to another?
So the cup which is full should be raised and tilted to the other cup. In the tilted cup the liquid should change its position and should start running to the other cup.
In general this process of leaking could be achieved with particles. I think the main problem is how to move the liquid in the cup when it is going to be tilted?
Upper border of the liquid should be parallel of the ground plane all the time.

Any ideas?

P.S I am using the free version.

Particle colliders and gravity?

Do you know a tutorial or a post with a description?

First rule of game programming: cheat. You don’t need a fluid simulation for this. The water doesn’t actually have to move. It just has to look like it’s moving.

First off, you’ll need an object that looks like water in both the bottom and top glass. Then make a particle system that shows water falling from the top glass into the bottom. At the same time, scale down the “water” in the top glass and scale it up in the bottom. When the top glass is empty, turn off the particle system.

The last issue is the ground-plane-parallel thing. Not sure how to do that off the top of my head. (and reading this post a little bit closer I think it’s the main thing you were asking… sorry)

1 Like

I have all you mentioned here :slight_smile: and just want to achieve ground-plane-parallel

hi, i’m so glad to find this talk cause i am looking for the same solution for some days. And i am wondering where could i get a demo of your solution. I really need it, can you share some solution with me?

What are you wanting this for?

There’s billion dollar franchises that wouldn’t bother with this. Is this for an effect, or is it part of the actual game?

PS - In the future, you can just go ahead and make a new thread rather than “necrothreading”.

Well, this popped up in my alerts again.

Here’s a specific example of a rather large name game that doesn’t even try to make this look good:

https://www.youtube.com/watch?v=un2-yJWVCw8