Prevents sprites from overlapping barriers