Penetration
One polygon's resolved penetration into a region it may not occupy: the violated face, how deep, and the way out.
The single violation resolved by collide and escape; situations violating several faces at once converge by resolving and querying again. Displacing the subject by depth along normal resolves this penetration.
Functions
Link copied to clipboard
Penetration? { onPenetration } => Penetration?
Runs onPenetration on the penetration when there is one, and returns the receiver unchanged either way.