@@ -11,8 +11,8 @@ namespace Lockstep
1111{
1212public class CollisionPair
1313{
14- public LSBody Body1 ;
15- public LSBody Body2 ;
14+ public LSBody_ Body1 ;
15+ public LSBody_ Body2 ;
1616private long CacheSqrDistance ;
1717private CollisionType LeCollisionType ;
1818private bool DoPhysics = true ;
@@ -41,7 +41,7 @@ public bool IsColliding {
4141
4242bool IsValid { get ; set ; }
4343
44- public void Initialize ( LSBody b1 , LSBody b2 )
44+ public void Initialize ( LSBody_ b1 , LSBody_ b2 )
4545{
4646IsValid = true ;
4747if ( ! IsValid )
@@ -259,7 +259,7 @@ private void DistributeCollision()
259259
260260}
261261
262- void DistributeCircle_Poly ( LSBody circle , LSBody poly )
262+ void DistributeCircle_Poly ( LSBody_ circle , LSBody_ poly )
263263{
264264Vector2d edgeAxis = ClosestAxis . rotatedRight ;
265265long horProjection = circle . _position . Dot ( edgeAxis . x , edgeAxis . y ) ;
@@ -469,7 +469,7 @@ public bool CheckBox()
469469return false ;
470470}
471471
472- public static bool CheckBox_Poly ( LSBody box , LSBody poly )
472+ public static bool CheckBox_Poly ( LSBody_ box , LSBody_ poly )
473473{
474474bool Right = poly . _position . x > box . _position . x ;
475475bool Top = poly . _position . y > box . _position . y ;
@@ -525,7 +525,7 @@ public static bool CheckBox_Poly(LSBody box, LSBody poly)
525525private static long ClosestAxisProjection ;
526526
527527
528- public static bool CheckCircle_Poly ( LSBody circle , LSBody poly )
528+ public static bool CheckCircle_Poly ( LSBody_ circle , LSBody_ poly )
529529{
530530int EdgeCount = poly . EdgeNorms . Length ;
531531ClosestDist = long . MaxValue ;
@@ -577,7 +577,7 @@ public static bool CheckCircle_Poly(LSBody circle, LSBody poly)
577577static bool Collided ;
578578static long xAbs , yAbs ;
579579
580- public void DistributeCircle_Box ( LSBody box , LSBody circle )
580+ public void DistributeCircle_Box ( LSBody_ box , LSBody_ circle )
581581{
582582xMore = circle . _position . x > box . _position . x ;
583583yMore = circle . _position . y > box . _position . y ;
@@ -646,7 +646,7 @@ public void DistributeCircle_Box(LSBody box, LSBody circle)
646646circle . BuildBounds ( ) ;
647647}
648648
649- public static bool CheckCircle_Box ( LSBody box , LSBody circle )
649+ public static bool CheckCircle_Box ( LSBody_ box , LSBody_ circle )
650650{
651651Collided = false ;
652652
@@ -714,7 +714,7 @@ public static bool CheckCircle_Box(LSBody box, LSBody circle)
714714return Collided ;
715715}
716716
717- public static bool CheckPoly_Poly ( LSBody poly1 , LSBody poly2 )
717+ public static bool CheckPoly_Poly ( LSBody_ poly1 , LSBody_ poly2 )
718718{
719719int Poly1EdgeCount = poly1 . EdgeNorms . Length ;
720720int EdgeCount = Poly1EdgeCount + poly2 . EdgeNorms . Length ;
@@ -743,7 +743,7 @@ public static bool CheckPoly_Poly(LSBody poly1, LSBody poly2)
743743return true ;
744744}
745745
746- public static void ProjectPolygon ( long AxisX , long AxisY , LSBody Poly , out long Min , out long Max )
746+ public static void ProjectPolygon ( long AxisX , long AxisY , LSBody_ Poly , out long Min , out long Max )
747747{
748748Min = Poly . RealPoints [ 0 ] . Dot ( AxisX , AxisY ) ;
749749Max = Min ;
0 commit comments