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

Support multiple hits for shape casts #63

Merged
merged 4 commits into from
Jul 9, 2023
Merged

Support multiple hits for shape casts #63

merged 4 commits into from
Jul 9, 2023

Conversation

Jondolf
Copy link
Owner

@Jondolf Jondolf commented Jul 9, 2023

Adds support for computing multiple hits in shape casts. This also unifies the API with ray casting methods.

The main caveat is that this needs to be done using multiple best-first searches of the QBVH and adding each hit entity to the excluded entities. Using a single depth-first search would be faster, but Parry doesn't seem to support it for shape casts.

@Jondolf Jondolf added the C-Enhancement New feature or request label Jul 9, 2023
@Jondolf Jondolf merged commit 4d592d3 into main Jul 9, 2023
@Jondolf Jondolf deleted the shape-cast-multiple branch July 9, 2023 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant