collision and map viewport