How to "fill up" a bucket?

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)

1 Like

Cant you just add the water object in blender, and export it seperately, and then tween that part?

1 Like

You can use a cone shaped mesh and tween that with CFrame presets.


1 Like

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.

2 Likes

that’s not what I meant. sorry if my English is not good, but it will clip if I tween it

That might actually be a good idea honestly, however it will take a few tries to find the correct size. I will try that

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.

1 Like

That’s clever actually, I haven’t tought of clipping.

Here is a practice with a flat cylinder:

1 Like

Or you can just brute force it with trial and error, anyways I’m going to mark your answer as it worked for me

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.