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