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