1 Hour Ago
simplified 3-triangle closest point test to a single triangle for XZ and then clamping Y to the prismatic extents, more accurate and cheaper