-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for 2D particles to collide against SDF #48894
Conversation
88da506
to
f415318
Compare
@akien-mga Most of the bindings in RenderingServer are broken, will fix at a later time when the API stabilizes (its on my todo), so I am not bothering updating those for now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some API suggestions, but otherwise seems good.
-Added SDF collision support for 2D particles -Changed the SDF generation to be fully signed
Thanks! |
Hi. Any idea when this will be exposed? We cannot use 2D collisions in the godot 4 beta. |
@LakshayaG73 2D collisions were exposed in this PR, you can already use them. I have tested and confirmed they are working fine in Beta 2 |
@clayjohn can you elaborate a bit on how to use them? |
when will this be available to beta? its still not working on godot 4 beta 7 |
To generate a SDF for particle collision or custom shaders, you need to create LightOccluder2D nodes and ensure its Generate SDF property is enabled (it's enabled by default). Edit: I've tried following that process, but collision never occurs: test_gpuparticles2d_collision.zip |
trails_collision.mp4