Home > Net >  How in Unity to create a water level in a bottle?
How in Unity to create a water level in a bottle?

Time:02-02

Hello everyone There is such a problem - I have a bottle sprite and a sprite showing the water level in this bottle. But, as you understand, if you start rotating the bottle, the level will remain the same. How to make the water rotate realistically? (was always downstairs) As far as I understand, you probably need a shader, but I'm not strong at all.

I tried to make water in small circles with physics, but it works unstable and the balls periodically slip through the wall.

image of a cola bottle that rotates while keeping the liquid level

view of the liquid game object and components

Note that the box collider isn't necessary, it was just added to illustrate the underlying sprite size.

view of the bottle game object and components

  • Related