So I modeled a bucket, and I want it to fill up with water (not terrain water, just some blue part) with maybe a tween, so it starts with no water then gradually fills up. Is there anyway I can achieve this? Please note that the bucket expanding outwards, so simply resizing a part won’t work.
Any sort of help would be appreciated.
Bucket image (you can see it's expanding outwards)
I’d recommend only using a flat cylinder (or whatever shape best fits the container’s shape) so that it doesn’t clip through as you move the water up and down, while changing the size to match the width of the container at that relative height.
If the size has a consistent formula for the change in width, you could just use that formula to determine the width at any given height even at precise amounts. Though some easier/lazier solutions could be raycasting to find the width from the center (radius) times 2 for the width, or manually determine sizes at different points and either use those points or lerp between those points.
I think the easiest solution would be to get the size of the container at the top and bottom and lerp that for the width at any given height.