The signed distance between two admitted shapes, each placed by its parent
pose: positive when they are apart, negative when one enters the other.
Every shape is a wire frame widened by a radius: a sphere is its centre and
a capsule its axis, widened by their radius; a box and a hull are their
edges, widened by nothing. The distance is the least, over both shapes, of
the signed distance from one shape's wires to the other shape
(physicalShapeNearest) less the wires' radius.
Apart, this is the exact distance between the two solids: the nearest pair
of points of two convex solids lies on a vertex or an edge of one of them,
or on the axis of a round one. Overlapping, it is how deep a wire of one
lies inside the other, the same depth a capsule's axis reads against a
body, so two capsules read their axis distance less both radii.
The signed distance between two admitted shapes, each placed by its parent pose: positive when they are apart, negative when one enters the other.
Every shape is a wire frame widened by a radius: a sphere is its centre and a capsule its axis, widened by their radius; a box and a hull are their edges, widened by nothing. The distance is the least, over both shapes, of the signed distance from one shape's wires to the other shape (
physicalShapeNearest) less the wires' radius.Apart, this is the exact distance between the two solids: the nearest pair of points of two convex solids lies on a vertex or an edge of one of them, or on the axis of a round one. Overlapping, it is how deep a wire of one lies inside the other, the same depth a capsule's axis reads against a body, so two capsules read their axis distance less both radii.