Using a collision mask