Skip to main content

edge_signed_distance

Function edge_signed_distance 

Source
pub fn edge_signed_distance(a: &Shape, b: &Shape) -> f64
Expand description

Signed edge distance: positive = separated, negative = penetration depth.

For AABB↔AABB / Circle↔Circle / Point↔* this is exact enough for soft clash. PointSet uses distance to closest boundary segment (negative inside).