Skip to content

Conversation

@ikpil
Copy link
Owner

@ikpil ikpil commented Dec 27, 2025

… functions

  • Update b2CollideChainSegmentAndCircle, b2CollideChainSegmentAndCapsule, and b2CollideChainSegmentAndPolygon signatures in B2Manifolds.cs to accept B2ChainSegment as in parameter instead of ref.
  • Update call sites in B2Contacts.cs, Manifold.cs, and SmoothManifold.cs to match the new signature.
  • Use ref readonly for B2ChainSegment iteration in SmoothManifold.cs.

… functions

- Update `b2CollideChainSegmentAndCircle`, `b2CollideChainSegmentAndCapsule`, and `b2CollideChainSegmentAndPolygon` signatures in `B2Manifolds.cs` to accept `B2ChainSegment` as `in` parameter instead of `ref`.
- Update call sites in `B2Contacts.cs`, `Manifold.cs`, and `SmoothManifold.cs` to match the new signature.
- Use `ref readonly` for `B2ChainSegment` iteration in `SmoothManifold.cs`.
@ikpil ikpil merged commit 5a9569f into main Dec 27, 2025
10 checks passed
@ikpil ikpil deleted the pr/refactor--B2ChainSegment-parameters-to-use-'in'-modifier-in-collision-functions branch December 27, 2025 03:37
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