Ignore collisions between 1 object and a layer of objectS?

First, does Physics.IgnoreCollision need rigidbodies or does it work with colliders alone?
Second, is there an easyway to use above function with a layer of objects? If so, how?
Third, does the collision system calculate collisions for every object every frame? Or only the ones which i forexample use OnCollisionEnter…exit…etc ?
Thanks in advance.

anyone out there?

bump

I haven’t used the features you’re referring to that much, so I can’t really offer an authoritative answer. As for the first question though, I don’t think IgnoreCollision() imposes any requirements on the objects involved other than those imposed by the collision system itself. Regarding layers, I don’t know that there’s a way to specify that a specific collider not intersect with a specific collision layer, but it’s likely you can achieve the same thing using layers.

And as for the last question, I would imagine that collision testing is performed on a per-update basis at least for every object for which it matters (in addition to objects with collision callbacks associated with them, this would also include any object whose behavior can be affected by collisions with other objects).