Restrain mesh size with Editable Meshes

How would I go about restraining a mesh’s size in a cube or rectangle.

I was making a blood/liquid effect & I wanted to make it drip when it reaches the sides/limits of the floor. So to achieve this, I have to deform the top part then make ones on the side (dripping effect)

I want the mesh to deform as it is tweening out to satay within the floor’s size. The mesh will be expanding, so I’ll have to edit it as it is expanding.
The red outline is the limit.

My problem here is not necessarily the math behind it, but the mesh deformation itself. I would appreciate it if you could send me some tutorials about mesh deformation or help me with my specific issue here.

1 Like

There’s no real good and ‘efficient’ way that I know of that would help you deform premade meshes, HOWEVER: there is a new beta api called the mesh api which lets you deform meshes (and image if you wish).

This document should hopefully help you find what you’re trying to do, but tell me if you get lost in it or confused and I can try to help you find something different

2 Likes