Im working on a bar game and today I made a moving liquid concept. I doubt that it will be used ingame, it also currently only works in square bottles (but cylindrical bottles can also be supported).
Huge inspiration from cs2 molotov.
My current way of implementing this feature is having a cube with 8 bones. Im using raycasts for top bones and fixed positions for bottom bones, that lazy way of implementing this feature causes water to look weird in various cases, especially when the bottle is tilted 90 degrees.
I would like to know if theres a better way to add bottled fluids into the game.
I might post the raw code and models later if it won’t be used in the game as a seperate post.
Other post: Intoxication/Alcohol effect