take into account the center of the aabb when calculating side planes