first triangle vertex (local space)
second triangle vertex (local space)
third triangle vertex (local space)
triangle normal (unnormalized OK)
3-bit mask: bit 0 = edge v0-v1, bit 1 = edge v1-v2, bit 2 = edge v2-v0
collision point on triangle (local space)
collision normal from GJK/EPA (unnormalized OK)
velocity hint for resolving ambiguous cases (can be zero)
corrected collision normal (returns input normal or triangle normal)
Replace collision normal with triangle normal when hitting an inactive edge.
Prevents "ghost collisions" at interior triangle mesh edges by detecting when a collision point lies on or near an inactive edge, and returning the triangle normal instead of the calculated collision normal.