I wish to take all collision events that occur in my Unity Scene and filter them thru a PhysX filter shader. I am unsure of how to do this with C# in Unity 5.1. I wish for this filter to intercept all possible collisions, and I want it to be executed before the Layering filter. Is there a good code reference somewhere on how to do this?
I’m pretty sure the answer is “you can’t” - collision filtering is exposed only through Unity’s layer-based collision matrix and manual calls to Physics.IgnoreCollision(). Happy to be proved wrong though…