public override CollisionInfo CollisionTests(CollisionHull3D other) { switch (other.hullType) { case CollisionHull3D.PhysDetect.Circle: return(CollisionHull3D.CircleCircle(this, other as CircleCollision3D)); case CollisionHull3D.PhysDetect.AABB: return(CollisionHull3D.CircleAABB(this, other as AxisAllignedBoundingBoxCollision3D)); case CollisionHull3D.PhysDetect.OBB: return(CollisionHull3D.CircleOBB(this, other as ObjectBoundingBoxCollision3D)); default: break; } return(null); }