Library and Version
release/104.2
Operating System
Windows 10
Description
For Capsule-Mesh contact generation, contacts can be generated whose seperation value is higher than the contact offset.
In some scenarios (image below) with relatively thin objects this can lead to contacts being generated on the opposite side of the colliding objects.

(Note that the image is from the old PhysX 4.1 PVD, since that is where the bug was initially discovered. The same code however is used in PhysX 4.1 and 5.0)
Proposed fix
See pull request #157
The contacOffset check compares against the t/distance value of intersectRayTriangle.
This value can however be negative, so the comparison t < radius + contactDistance can be true despite the absolute value of t being higher than radius + contactDistance