+1 vote

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.

in Engine by (199 points)

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.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.