Added collision mask support for filtering collisions.