3D particles bouncing off of level geometry?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By unfa

In this video you can see a demonstration of a ParticleShader producing 2D particles that bounce around a level. The map here is bitmap-based and the collision shape is determined by the texture alpha channel:

I’d like to know if it’s possible to create a ParticleShader that’d detect collisions with 3D geometry and react accordingly.

Example use casese: sparks that don’t fall through the floor and walls of a corridor, but bounce off of them before they die, also interacting with other physics objects in the scene (for example rolling barrels).

I’ve searched the web, but found nothing so far, except this 2D example, though many 3D engines do this, and it seems to be GPU-accelerated, so I believe it should be possible with a ParticleShader.

I would also love to know if this is possible, and how we can do it. The most convenient option would be to have a checkbox option for ‘bounce’ in the particle’s process material, but I don’t know how hard that would be to add.

navett52 | 2020-05-09 20:52