Modify Contact Normal

Hi,

In PhysX , there’s a feature that allow to modify contacts information ( position, normal, etc. ) before being processed by the contact solver.

http://docs.nvidia.com/gameworks/content/gameworkslibrary/physx/guide/Manual/AdvancedCollisionDetection.html#contact-modification

Is this feature supported by Unity? I didn’t find any way to use it, contacts in Collision class are “read only”.

Cheers,
Sebastien.

No, unfortunately not. Unity allows little to no interaction with the actual solver. FixedUpdate runs before the internal physics update and collision callbacks are run after the internal physics update. Though you can’t really influence the actual physics update. It would be really nice to have more intermediate callback in order to handle certain things differently.

Even Unity provides more and more access to manual methods like ComputePenetration the built-in physics pipeline is kind of “sealed”. At least to this date. I’m sure that they will open up the system more and more in the future, but you shouldn’t wait for it. It could take month or years.