- Home /
Particle self collision?
I'm trying to make a thing in unity using particles to make water, I already got the settings for it ready and now all I need to do is make them collide with each other. The particles use accelerometer to move and if I get all of them in a corner they will get stuck together and not come apart until I restart the simulation. I'm not sure if I'll need a script or if there's a setting to make them collide with them self.
Thanks if you can help.
Answer by richardkettlewell · Sep 09, 2017 at 09:37 PM
There is nothing built in for this, you would need to make a script, but it's not a trivial problem to solve efficiently.
If you don't have many particles, maybe you could use physics colliders instead.
Ill probably need a script because what I'm making is one of those simulations where you select something then click and it creates that so it could get a lot of particles depending on how long I create more. If you can get me a script or help me make one ill appreciate it.
@richardkettlewell I've been looking on YouTube and Reddit and found that most things using particle self collision involve some kind of compute shader. I have no knowledge of shaders at all so ill need help either making one or understanding how they work.
Your answer
Follow this Question
Related Questions
Use OnCollision to trigger particle activation 2 Answers
Particle collision on instantiate doesn't send 1 Answer
3D Particles collision don't work 0 Answers
Particle System Collision Problem 0 Answers
Particles don't want to collide 0 Answers