Skip to content
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

removed 2nd particle collision velocity calculation #65714

Merged

Conversation

benbot
Copy link

@benbot benbot commented Sep 12, 2022

The velocity change of a particle that has collided with something is being applied twice in the GPUParticleProcess shader, causing some weirdness.

This removes the newer, 2nd velocity calculation. keeping the original one in its place.

Should resolve #65707

@Calinou Calinou added this to the 4.0 milestone Sep 12, 2022
@fire fire requested a review from a team September 12, 2022 17:21
Copy link
Member

@clayjohn clayjohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, looks good to me. On closer inspection, it shouldn't matter whether that block is moved above the collision check or not.

Let's move forward with merging this.

@akien-mga akien-mga merged commit ea47e03 into godotengine:master Oct 12, 2022
@akien-mga
Copy link
Member

Thanks! And congrats for your first merged Godot contribution 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GPUParticles collisions shader code seems broken. Creates jittery bounces when bounce > 0.0
5 participants