I am not sure if this is done is script, but is there any way to stop 2 objects from colliding with each other ONLY? Otherwise I have physical glitches with a door on a fridge.
You can use IgnoreCollision function. You may also assign each gameObject to a different layer and then use IgnoreLayerCollision.
var doorPrefab : Transform;
function Start ()
{
var door = Instantiate(doorPrefab, ...) as Transform;
Physics.IgnoreCollision(door.collider, collider); //collider is the collider for a fridge.
}
Edited the code!
Thanks!