How would I make liquids sip out or work in a flask?

Hello,

I am working on a game and I have a glass flask where the user can put in liquids. Now I do not understand how I can show the liquid in the flask and if they tip it over the liquids spill out.

I was thinking about negating and unioning the liquid part in real time but that would be way to advanced.

How would I achieve that?

This is an interesting topic, however without making an excess amount of scripting to simulate the physics of liquid, you’ll have to settle with pre-built models that you can spawn in.

I’m not sure if I’d explore a Union/Negate route, that seems too complex for a system of (seemingly) such a small importance.

I dont necessarily want to simulate liquid physics. The only thing i want is for the liquid (part) to shrink or get bigger whenever. That was why I was thinking about unioning and negating as you can cut the top part of the part off.

Why not Tween the position and size of the liquid brick so that it shrinks?

If the cup is small and the liquid is barely visible, you may not even need to use tweens, perhaps just have two parts and set the transparency for one of them to 0 when the player drinks it? Or if that is not what you were asking sorry haha.

The player does not drink it. It’s basically just a chemist game where they can mix liquids. If I just resize the part then it will resize outside of the flask as the flask is not a square or box.

Oh, then like @TerryMichaelBrunk mentioned above; make the use of tweens. So they would basically cause the liquid part to move to a point smoothly.

I recently saw a tweet that shows liquid in a sort of juice box. You might be able to ask them :man_shrugging:
https://twitter.com/BrakerGrand/status/1276449062326157313

I dont think they used negating/unions actually?