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: Prevent pair generation for composite colliders #2131

Merged
merged 10 commits into from
Nov 28, 2021

Conversation

eonarheim
Copy link
Member

@eonarheim eonarheim commented Nov 26, 2021

===:clipboard: PR Checklist :clipboard:===

  • 📌 issue exists in github for these changes
  • 🔬 existing tests still pass
  • 🙈 code conforms to the style guide
  • 📐 new tests written and passing / old tests updated with new scenario(s)
  • 📄 changelog entry added (or not needed)

==================

Fixes an issue where pairs were erroneously being generated for composite colliders when fps was low.

image

Discovered when artificially limiting to 15 fps, this happened because the low fps would trigger the continuous fast moving object detection for the collision processor. This fast object code had a bug and did not evaluate whether it should generate a pair the same way. The code has been fixed so that they are consistent.

Changes:

  • Prevent pairs with the same owner id from being generated
  • Adds tests to the fast moving object

@eonarheim eonarheim added the work-in-progress A work in progress pull request, will not be merged until this is removed label Nov 26, 2021
@github-actions github-actions bot added the bug This issue describes undesirable, incorrect, or unexpected behavior label Nov 26, 2021
@eonarheim eonarheim removed the work-in-progress A work in progress pull request, will not be merged until this is removed label Nov 28, 2021
@eonarheim eonarheim merged commit df1acb3 into main Nov 28, 2021
@eonarheim eonarheim deleted the fix/prevent-pair-generation-for-composite branch November 28, 2021 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue describes undesirable, incorrect, or unexpected behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant