Particles intersect each other

Simple question, In a particle system confined in the screen, how can I get if particles intesect each other?

You have to call for each particle and test if it’s colliding one of the other foreach particle…

To optimize stuff you have to to do some bining or linked lists…

hei @Patxi7 the Example Repelling Circles does exactly that, right? so when looking at it and comparing it to your version, what is your question exactly?

Hi there! what I want is to get the collisions of all the particles with all of them. With CircleIntersectsCircle I get only the collisions of particle #0 with all the others …I’ll be tomorrow in pattch therapy…Thanks!

ParticlesIntersect1

Done!
ParticlesIntersect

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.