Toggling Physics.IgnoreCollision?

So I have a rigidbody pickup script and I have a line of code that ignores collisions of the held object and the player, I would like this to disable after I “drop” the object, what is the opposite of Physics.IgnoreCollision?

There is a optional bool argument using Physics.IgnoreCollision.
To disable the ignore collision so that the two collidors can collide again, set the third argument to false.


IgnoreCollision(Collider collider1, Collider collider2, false);


If you checkout the documentation, you’ll see that the method accepts a bool. Not specifying a value, or passing true, will ignore collisions while passing false will allow collisions to be processed.