示例#1
0
 protected override bool IsColliderOverlapping(EHBaseCollider2D OtherCollider)
 {
     switch (OtherCollider.GetColliderShape())
     {
     case EHGeometry.ShapeType.Rect2D:
         return(IsOverlappingRect2D(((EHBox2DCollider)OtherCollider).RectGeometry));
     }
     return(false);
 }
示例#2
0
 public override float GetShortestDistanceFromPreviousPosition(EHBaseCollider2D OtherCollider)
 {
     switch (OtherCollider.GetColliderShape())
     {
     case EHGeometry.ShapeType.Rect2D:
         return(PreviousRectGeometry.GetShortestDistance(((EHBox2DCollider)OtherCollider).RectGeometry));
     }
     return(-1);
 }