parry3d::query::details

Function distance_convex_polyhedron_ball

source
pub fn distance_convex_polyhedron_ball(
    pos12: &Isometry<f32>,
    shape1: &(impl Shape + ?Sized),
    ball2: &Ball,
) -> f32
Expand description

Distance between a convex polyhedron and a ball.

This function panics if the input shape does not implement both the ConvexPolyhedron and PointQuery traits.