- Home /
How to create deforming soap bubbles in unity?
I'm using unity 3.5 (indie version) and I need to create bubbles that deform a bit when bump into each other and other surfaces... I haven't tried anything yet and I'm looking for something to start with... anyone has any idea where/how to start...?
Answer by robertbu · Jan 14, 2013 at 07:00 PM
You might look at these two possibilities:
Procedurally - Here is a link to some some examples.
Cloth - here is a link to some training videos. Video #16 has a beach ball that deforms when impacted.
thanks a lot... I checked the videos, quite helpful actually...
but the "examples" link gave me "404 link not found"...
Answer by Kos-Dvornik · Jun 11, 2014 at 11:29 AM
This tutorial may help http://kostiantyn-dvornik.blogspot.com/2014/06/interesting-advanced-particle-tutorial.html
@saddam751 really? You expect tutorials to spoon feed you? That's amazing.
@Harshad$$anonymous$$ to be fair it's not written in great English. And it doesn't actually solve the problem OP was asking about.
Answer by saddam751 · Dec 04, 2014 at 09:13 AM
how to make soft body physics. A water bubble that changed shape at point of contact when collides with something
Answer by uuil. · Dec 05, 2014 at 09:10 PM
The other answers here suggest using soft-bodies, which may well work for your case. But in cases of far larger numbers of particles I think I different approach would be merited.
You can estimate the density (rate of collision) by tracing the positions of the particles. However calculations based on the positions of the particles is dumb, and slow. So the next best thing is to guess what the density of the particles will be over time. And then adjust the animation accordingly. I.e. Set up some particle systems which behave in a predictable way. And animate their deformation as this guy does , but with a more complex animation graph. The key for a method like this working is for there to be enough particles, with regular collisions.
IDK how realistic something like this might look. But I believe it'd be worth an investigation.
Your answer
Follow this Question
Related Questions
How to deform a 2D GameObject ? 1 Answer
Guide a wire along the touch with deformation. 0 Answers
Script not updating ? 0 Answers
Bend 3d object (Mesh) at Runtime 2 Answers
Why is mesh deformed in unity but in blender it looks ok? 0 Answers