Adjust camera placement algorithm and fix gridAABB