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.
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.
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.