public override CollisionInfo TestCollision(CollisionHull2D other) { switch (other.HullType) { case CollisionHull2D.CollisionType.Circle: return(CollisionHull2D.CircleVSOBB(other as CircleHull, this)); case CollisionHull2D.CollisionType.AABB: return(CollisionHull2D.AABBVSOBB(other as AABBHull, this)); case CollisionHull2D.CollisionType.OBB: return(CollisionHull2D.OBBVSOBB(this, other as OBBHull)); default: break; } return(null); }