Optimized object collisions by doing axis sorting.