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

Body collision filters #31

Open
Genbox opened this issue May 20, 2017 · 0 comments
Open

Body collision filters #31

Genbox opened this issue May 20, 2017 · 0 comments

Comments

@Genbox
Copy link
Owner

Genbox commented May 20, 2017

There is already collision filters on fixtures, and bodies contain collision filters as a wrapper for it's fixtures. This proposal is about creating a filter for bodies much like there is for fixtures (no wrapper).

A body is just a point in space and has no real concept of a geometry until fixtures attach shapes to the body. Adding a body filter would mean we break this concept a little bit by filtering on the total geometry (all shapes) of a body in the collision broad phase. We could further speed up processing by merging AABBs together for each shape in a body and check against that instead of each AABB.

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

No branches or pull requests

1 participant