- Home /
Creating a splitting effect in Unity
I am creating on a molecular simulation project. In this, when two atom gameobjects collide with each other they form a molecule gameobject. So when two atoms are pulled apart their joint is broken. So for this joint breaking, I want to add some kind of effect which will show that molecule is being broken.
Right now I am thinking of having an effect like this .
But I can't find anything for implementing like this. I need help regarding implementing this kind of effect in Unity. I am fairly new to particle systems of unity, but I can work it out with some reference or examples.
@sethuraj Thanks for the reply and the effect that you have shown is same to somewhat I want. However, as I have said in the question, those atoms will be pulled by the user using Leap $$anonymous$$otion hands. Can you suggest something simpler (may be not necessarily same to what I have asked for) effect or behaviour which I can do in the case of joint break between two sphere objects ?
Answer by sethuraj · Dec 13, 2017 at 09:18 AM
What you are looking for is a MetaBall effect and its a bit advanced. You need to work on shader level to create an effect like this.
The Blob example from directX sdk demonstrates this effect written in HLSL Link
You can also have a look at the Nvidia Direct3D SDK 10 representing the same Link
A minimalistic Unity version can be found Here ( Credits Patomkin )
Hope this helps!