@@ -28,7 +28,7 @@ public static class B2ContactSolvers
2828 // s(t) = s0 + dot(cB0 + dpB + rot(dqB, rB0) - cA0 - dpA - rot(dqA, rA0), normal)
2929 // s(t) = s0 + dot(cB0 - cA0, normal) + dot(dpB - dpA + rot(dqB, rB0) - rot(dqA, rA0), normal)
3030 // s_base = s0 + dot(cB0 - cA0, normal)
31- public static void b2PrepareOverflowContacts ( B2StepContext context )
31+ internal static void b2PrepareOverflowContacts ( B2StepContext context )
3232 {
3333 b2TracyCZoneNC ( B2TracyCZone . prepare_overflow_contact , "Prepare Overflow Contact" , B2HexColor . b2_colorYellow , true ) ;
3434
@@ -165,7 +165,7 @@ public static void b2PrepareOverflowContacts(B2StepContext context)
165165 b2TracyCZoneEnd ( B2TracyCZone . prepare_overflow_contact ) ;
166166 }
167167
168- public static void b2WarmStartOverflowContacts ( B2StepContext context )
168+ internal static void b2WarmStartOverflowContacts ( B2StepContext context )
169169 {
170170 b2TracyCZoneNC ( B2TracyCZone . warmstart_overflow_contact , "WarmStart Overflow Contact" , B2HexColor . b2_colorDarkOrange , true ) ;
171171
@@ -239,7 +239,7 @@ public static void b2WarmStartOverflowContacts(B2StepContext context)
239239 b2TracyCZoneEnd ( B2TracyCZone . warmstart_overflow_contact ) ;
240240 }
241241
242- public static void b2SolveOverflowContacts ( B2StepContext context , bool useBias )
242+ internal static void b2SolveOverflowContacts ( B2StepContext context , bool useBias )
243243 {
244244 b2TracyCZoneNC ( B2TracyCZone . solve_contact , "Solve Contact" , B2HexColor . b2_colorAliceBlue , true ) ;
245245
@@ -401,7 +401,7 @@ public static void b2SolveOverflowContacts(B2StepContext context, bool useBias)
401401 b2TracyCZoneEnd ( B2TracyCZone . solve_contact ) ;
402402 }
403403
404- public static void b2ApplyOverflowRestitution ( B2StepContext context )
404+ internal static void b2ApplyOverflowRestitution ( B2StepContext context )
405405 {
406406 b2TracyCZoneNC ( B2TracyCZone . overflow_resitution , "Overflow Restitution" , B2HexColor . b2_colorViolet , true ) ;
407407
@@ -506,7 +506,7 @@ public static void b2ApplyOverflowRestitution(B2StepContext context)
506506 b2TracyCZoneEnd ( B2TracyCZone . overflow_resitution ) ;
507507 }
508508
509- public static void b2StoreOverflowImpulses ( B2StepContext context )
509+ internal static void b2StoreOverflowImpulses ( B2StepContext context )
510510 {
511511 b2TracyCZoneNC ( B2TracyCZone . store_impulses , "Store" , B2HexColor . b2_colorFireBrick , true ) ;
512512
@@ -1107,7 +1107,7 @@ static void b2ScatterBodies( b2BodyState* states, int* indices, const b2BodyStat
11071107#else
11081108
11091109 // This is a load and transpose
1110- public static B2BodyStateW b2GatherBodies ( B2BodyState [ ] states , ReadOnlySpan < int > indices )
1110+ internal static B2BodyStateW b2GatherBodies ( B2BodyState [ ] states , ReadOnlySpan < int > indices )
11111111 {
11121112 B2BodyState identity = b2_identityBodyState ;
11131113
@@ -1130,7 +1130,7 @@ public static B2BodyStateW b2GatherBodies(B2BodyState[] states, ReadOnlySpan<int
11301130 }
11311131
11321132 // This writes only the velocities back to the solver bodies
1133- public static void b2ScatterBodies ( B2BodyState [ ] states , ReadOnlySpan < int > indices , ref B2BodyStateW simdBody )
1133+ internal static void b2ScatterBodies ( B2BodyState [ ] states , ReadOnlySpan < int > indices , ref B2BodyStateW simdBody )
11341134 {
11351135 if ( indices [ 0 ] != B2_NULL_INDEX && ( states [ indices [ 0 ] ] . flags & ( uint ) B2BodyFlags . b2_dynamicFlag ) != 0 )
11361136 {
@@ -1168,7 +1168,7 @@ public static void b2ScatterBodies(B2BodyState[] states, ReadOnlySpan<int> indic
11681168#endif
11691169
11701170 // Contacts that live within the constraint graph coloring
1171- public static void b2PrepareContactsTask ( int startIndex , int endIndex , B2StepContext context )
1171+ internal static void b2PrepareContactsTask ( int startIndex , int endIndex , B2StepContext context )
11721172 {
11731173 b2TracyCZoneNC ( B2TracyCZone . prepare_contact , "Prepare Contact" , B2HexColor . b2_colorYellow , true ) ;
11741174 B2World world = context . world ;
@@ -1423,7 +1423,7 @@ public static void b2PrepareContactsTask(int startIndex, int endIndex, B2StepCon
14231423 b2TracyCZoneEnd ( B2TracyCZone . prepare_contact ) ;
14241424 }
14251425
1426- public static void b2WarmStartContactsTask ( int startIndex , int endIndex , B2StepContext context , int colorIndex )
1426+ internal static void b2WarmStartContactsTask ( int startIndex , int endIndex , B2StepContext context , int colorIndex )
14271427 {
14281428 b2TracyCZoneNC ( B2TracyCZone . warm_start_contact , "Warm Start" , B2HexColor . b2_colorGreen , true ) ;
14291429
@@ -1481,7 +1481,7 @@ public static void b2WarmStartContactsTask(int startIndex, int endIndex, B2StepC
14811481 b2TracyCZoneEnd ( B2TracyCZone . warm_start_contact ) ;
14821482 }
14831483
1484- public static void b2SolveContactsTask ( int startIndex , int endIndex , B2StepContext context , int colorIndex , bool useBias )
1484+ internal static void b2SolveContactsTask ( int startIndex , int endIndex , B2StepContext context , int colorIndex , bool useBias )
14851485 {
14861486 b2TracyCZoneNC ( B2TracyCZone . solve_contact , "Solve Contact" , B2HexColor . b2_colorAliceBlue , true ) ;
14871487
@@ -1719,7 +1719,7 @@ public static void b2SolveContactsTask(int startIndex, int endIndex, B2StepConte
17191719 b2TracyCZoneEnd ( B2TracyCZone . solve_contact ) ;
17201720 }
17211721
1722- public static void b2ApplyRestitutionTask ( int startIndex , int endIndex , B2StepContext context , int colorIndex )
1722+ internal static void b2ApplyRestitutionTask ( int startIndex , int endIndex , B2StepContext context , int colorIndex )
17231723 {
17241724 b2TracyCZoneNC ( B2TracyCZone . restitution , "Restitution" , B2HexColor . b2_colorDodgerBlue , true ) ;
17251725
@@ -1834,7 +1834,7 @@ public static void b2ApplyRestitutionTask(int startIndex, int endIndex, B2StepCo
18341834 b2TracyCZoneEnd ( B2TracyCZone . restitution ) ;
18351835 }
18361836
1837- public static void b2StoreImpulsesTask ( int startIndex , int endIndex , B2StepContext context )
1837+ internal static void b2StoreImpulsesTask ( int startIndex , int endIndex , B2StepContext context )
18381838 {
18391839 b2TracyCZoneNC ( B2TracyCZone . store_impulses , "Store" , B2HexColor . b2_colorFireBrick , true ) ;
18401840
0 commit comments