@@ -80,7 +80,7 @@ public static B2Manifold b2CollideCircles(ref B2Circle circleA, B2Transform xfA,
8080
8181 /// Compute the contact manifold between a capsule and circle
8282 /// Compute the collision manifold between a capsule and circle
83- public static B2Manifold b2CollideCapsuleAndCircle ( ref B2Capsule capsuleA , B2Transform xfA , ref B2Circle circleB , B2Transform xfB )
83+ public static B2Manifold b2CollideCapsuleAndCircle ( in B2Capsule capsuleA , B2Transform xfA , ref B2Circle circleB , B2Transform xfB )
8484 {
8585 B2Manifold manifold = new B2Manifold ( ) ;
8686
@@ -266,7 +266,7 @@ public static B2Manifold b2CollidePolygonAndCircle(ref B2Polygon polygonA, B2Tra
266266 /// Compute the contact manifold between a capsule and circle
267267 // Follows Ericson 5.1.9 Closest Points of Two Line Segments
268268 // Adds some logic to support clipping to get two contact points
269- public static B2Manifold b2CollideCapsules ( ref B2Capsule capsuleA , B2Transform xfA , ref B2Capsule capsuleB , B2Transform xfB )
269+ public static B2Manifold b2CollideCapsules ( in B2Capsule capsuleA , B2Transform xfA , in B2Capsule capsuleB , B2Transform xfB )
270270 {
271271 B2Vec2 origin = capsuleA . center1 ;
272272
@@ -537,14 +537,14 @@ public static B2Manifold b2CollideCapsules(ref B2Capsule capsuleA, B2Transform x
537537 }
538538
539539 /// Compute the contact manifold between an segment and a capsule
540- public static B2Manifold b2CollideSegmentAndCapsule ( ref B2Segment segmentA , B2Transform xfA , ref B2Capsule capsuleB , B2Transform xfB )
540+ public static B2Manifold b2CollideSegmentAndCapsule ( ref B2Segment segmentA , B2Transform xfA , in B2Capsule capsuleB , B2Transform xfB )
541541 {
542542 B2Capsule capsuleA = new B2Capsule ( segmentA . point1 , segmentA . point2 , 0.0f ) ;
543- return b2CollideCapsules ( ref capsuleA , xfA , ref capsuleB , xfB ) ;
543+ return b2CollideCapsules ( capsuleA , xfA , capsuleB , xfB ) ;
544544 }
545545
546546 /// Compute the contact manifold between a polygon and capsule
547- public static B2Manifold b2CollidePolygonAndCapsule ( ref B2Polygon polygonA , B2Transform xfA , ref B2Capsule capsuleB , B2Transform xfB )
547+ public static B2Manifold b2CollidePolygonAndCapsule ( ref B2Polygon polygonA , B2Transform xfA , in B2Capsule capsuleB , B2Transform xfB )
548548 {
549549 B2Polygon polyB = b2MakeCapsule ( capsuleB . center1 , capsuleB . center2 , capsuleB . radius ) ;
550550 return b2CollidePolygons ( ref polygonA , xfA , ref polyB , xfB ) ;
@@ -1091,7 +1091,7 @@ public static B2Manifold b2CollidePolygons(ref B2Polygon polygonA, B2Transform x
10911091 public static B2Manifold b2CollideSegmentAndCircle ( ref B2Segment segmentA , B2Transform xfA , ref B2Circle circleB , B2Transform xfB )
10921092 {
10931093 B2Capsule capsuleA = new B2Capsule ( segmentA . point1 , segmentA . point2 , 0.0f ) ;
1094- return b2CollideCapsuleAndCircle ( ref capsuleA , xfA , ref circleB , xfB ) ;
1094+ return b2CollideCapsuleAndCircle ( capsuleA , xfA , ref circleB , xfB ) ;
10951095 }
10961096
10971097 /// Compute the contact manifold between an segment and a polygon
@@ -1190,7 +1190,7 @@ public static B2Manifold b2CollideChainSegmentAndCircle(ref B2ChainSegment segme
11901190 }
11911191
11921192 /// Compute the contact manifold between a chain segment and a capsule
1193- public static B2Manifold b2CollideChainSegmentAndCapsule ( ref B2ChainSegment segmentA , B2Transform xfA , ref B2Capsule capsuleB , B2Transform xfB , ref B2SimplexCache cache )
1193+ public static B2Manifold b2CollideChainSegmentAndCapsule ( ref B2ChainSegment segmentA , B2Transform xfA , in B2Capsule capsuleB , B2Transform xfB , ref B2SimplexCache cache )
11941194 {
11951195 B2Polygon polyB = b2MakeCapsule ( capsuleB . center1 , capsuleB . center2 , capsuleB . radius ) ;
11961196 return b2CollideChainSegmentAndPolygon ( ref segmentA , xfA , ref polyB , xfB , ref cache ) ;
0 commit comments