Skip to content

Conversation

@ikpil
Copy link
Owner

@ikpil ikpil commented Dec 23, 2025

  • Updated B2ContactData constructor to accept B2Manifold as an in parameter.
  • Changed DrawManifold signature in collision samples to use in B2Manifold instead of ref.
  • Removed ref keyword from DrawManifold calls in Manifold.cs and SmoothManifold.cs.
  • This change improves performance by avoiding unnecessary struct copies and aligns with the read-only nature of the manifold data in these contexts.

- Updated `B2ContactData` constructor to accept `B2Manifold` as an `in` parameter.
- Changed `DrawManifold` signature in collision samples to use `in B2Manifold` instead of `ref`.
- Removed `ref` keyword from `DrawManifold` calls in `Manifold.cs` and `SmoothManifold.cs`.
- This change improves performance by avoiding unnecessary struct copies and aligns with the read-only nature of the manifold data in these contexts.
@ikpil ikpil merged commit 9dd5d7c into main Dec 23, 2025
10 checks passed
@ikpil ikpil deleted the pr/refactor-manifold-in branch December 23, 2025 14:39
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