Skip to content

Conversation

@ikpil
Copy link
Owner

@ikpil ikpil commented Dec 26, 2025

  • Updated World query and cast functions (e.g., b2World_CastRay, b2World_OverlapShape) to accept B2QueryFilter as in parameter.
  • Updated context struct constructors (B2WorldMoverCastContext, B2WorldOverlapContext, etc.) to use in parameters for filters.
  • Optimized internal collision check b2ShouldQueryCollide to use in B2QueryFilter.
  • This change improves performance by reducing struct copying and ensures read-only access to filter data.

- Updated World query and cast functions (e.g., `b2World_CastRay`, `b2World_OverlapShape`) to accept `B2QueryFilter` as `in` parameter.
- Updated context struct constructors (`B2WorldMoverCastContext`, `B2WorldOverlapContext`, etc.) to use `in` parameters for filters.
- Optimized internal collision check `b2ShouldQueryCollide` to use `in B2QueryFilter`.
- This change improves performance by reducing struct copying and ensures read-only access to filter data.
@ikpil ikpil merged commit a76aecc into main Dec 26, 2025
10 checks passed
@ikpil ikpil deleted the pr/refactor--B2QueryFilter-usage-to-use-'in'-parameters branch December 26, 2025 15:14
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.

2 participants