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

Fix contact constraints being cleared many times with many backends #424

Merged
merged 1 commit into from
Jul 13, 2024

Conversation

Jondolf
Copy link
Owner

@Jondolf Jondolf commented Jul 13, 2024

Objective

The custom_collider example is currently broken on some runs, because contact constraints are cleared by every instance of generate_constraints. If there are multiple collision backends at the same time, they can overwrite each other's results.

Solution

Clear contact constraints in a separate system that always only has one instance.

@Jondolf Jondolf added bugfix A-Collision Relates to the broad phase, narrow phase, colliders, or other collision functionality labels Jul 13, 2024
@Jondolf Jondolf merged commit ac1fd02 into main Jul 13, 2024
4 checks passed
@Jondolf Jondolf deleted the fix-constraint-clearing branch July 13, 2024 17:03
@Jondolf Jondolf added C-Bug Something isn't working and removed bugfix labels Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Collision Relates to the broad phase, narrow phase, colliders, or other collision functionality C-Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant