Skip to main content

capsule_sphere_signed_distance

Function capsule_sphere_signed_distance 

Source
pub fn capsule_sphere_signed_distance(cap: &CuCapsule, sph: &CuSphere) -> Length
Expand description

Computes the exact signed surface-to-surface distance between a capsule and a sphere.

Negative values indicate penetration depth.