I want to have a pipe with elastic walls that one or more blobs can move into which stretch the pipe.
I also want the pipe to be able to contract in diameter and have pressure applied from the outside which push the blobs along.
The blobs should also deform if the right amount of force is applied, and break apart if even more force is applied.
I want this to run inside a browser using WebGL. I am interested in 2D but also 3D.
It should be interactive. The user should control the forces applied to the pipe.
From my research it seems the blobs should probably be soft-bodies maybe using "rigid-body based deformation". Another alternative I considered would be fluid using particles.
What would be best to implement this?
What engine would be ideal for this?
Would it be a lot easier in just 2D?
How would the pipe be represented?