Skip to main content

epa_sphere_sphere

Function epa_sphere_sphere 

Source
pub fn epa_sphere_sphere(
    center_a: Vec3,
    radius_a: f32,
    center_b: Vec3,
    radius_b: f32,
) -> Option<(Vec3, f32)>
Expand description

EPA (Expanding Polytope Algorithm) — compute penetration depth and normal Simplified version for sphere vs sphere