Cómo hacer que los colidores chocen con algunas cosas pero no con otras en la unidad

//ignores all collisions between the object collided with and the 
	//gameobject that this script is attached to

Physics.IgnoreCollision(
	collision.gameObject.GetComponent<SphereCollider>(), 
	gameObject.GetComponent<SphereCollider>());
Daragard