Skip to content

Conversation

@ikpil
Copy link
Owner

@ikpil ikpil commented Dec 25, 2025

  • Updated collision, joint, and shape functions (e.g., b2CollideCircles, b2DrawDistanceJoint) to accept B2Transform as in parameter.
  • Optimized internal geometry and rendering helpers to use in B2Transform for better performance and read-only safety.
  • Updated Samples and data structures to align with the API changes.
  • This refactoring reduces unnecessary struct copying and enforces immutability for transform data in these contexts.

- Updated collision, joint, and shape functions (e.g., `b2CollideCircles`, `b2DrawDistanceJoint`) to accept `B2Transform` as `in` parameter.
- Optimized internal geometry and rendering helpers to use `in B2Transform` for better performance and read-only safety.
- Updated Samples and data structures to align with the API changes.
- This refactoring reduces unnecessary struct copying and enforces immutability for transform data in these contexts.
@ikpil ikpil merged commit 6e7fe94 into main Dec 25, 2025
10 checks passed
@ikpil ikpil deleted the pr/refactor--B2Transform-usage-to-use-'in'-parameters branch December 25, 2025 08:49
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