Moving bottled fluid | Bar game

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

3 Likes

Taking a shot in the dark - been trying for a while to replicate an effect similar to this - haven’t had any luck. Did you still plan on open-sourcing this? Cheers.

Since I abandoned the bar game due to lack of models, sure. Keep in mind it’s still very raw, goodluck improving it.
MovingLiquidBottle.rbxm (10.6 KB)

1 Like