Collision in POP?

Hi folks..POP is really nice, right?

Already is possible to make collisions in POP? I want to make some particles collide with a wall but I didnt see node to do it.

If they should just collide with a single wall, it’s quite easy to build the behavior yourself:
Say the wall has normal n and is at distance d from the origin. Then in each frame update particle positions with p = p+2 * max(-dot(p,n)-d,0) * n and if a particle collided with wall, update its velocity v with v = v - 2 * dot(v,n)
Hope that helps

Thanks Josef! Otherwise for a more generic approach using the Ray POP there is a particle collision sample (bottom of Particles/ParticleBasics) in Overview.toe, in the samples linked here Experimental Build 2025.30060 posted πŸš€

We do plan on making it easier, also on making the Ray POP faster, which currently always iterates on all the triangles of the collision input.

Thank u guys..very good ideas, I think that with Ray I can solve my problens.

Otherwise the Collision of SOP context is perfect, for furute it could be used as reference to insert on POP.

Hi, I was thinking about this collision question and remembered we added a reflect() function in Math Mix and Math Combine POPs which may help in doing a direction change if you use the velocity if the point (particle) as one of your vectors. something like that. but Ray POP may be more useful.

2 Likes