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

Sensor tree #860

Merged
merged 37 commits into from
Jan 20, 2025
Merged

Sensor tree #860

merged 37 commits into from
Jan 20, 2025

Conversation

erincatto
Copy link
Owner

@erincatto erincatto commented Dec 22, 2024

Sensors are now handled separately from regular collision. This allows sensors to be on any body type and detect any body type. Sensors are still shapes on bodies, but they don't stop checking for overlaps when the body is sleeping.
Sensors are processed at the end of the step so sensor events have no delay. Sensor events no longer need to be enabled on bodies. Instead the user should setup the appropriate filters to enable or disable sensor events.
Note: I did not test what happens if you disable a body with a sensor.

Replaced b2Timer with uint64_t
Bodies can now have names for debugging
Avoid deep clipping into chain shapes by fast bodies

@erincatto erincatto merged commit d0bf516 into main Jan 20, 2025
6 checks passed
@erincatto erincatto deleted the sensor_tree branch January 20, 2025 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant