making objects only collide with certain ones

now, is there a way i can make some objects collide with some, but go through others?? thanks 4 your time :)

Use Physics.IgnoreCollision, or use layers and the layer collision matrix in the physics settings (Unity 3 only).