Function heron::rapier_plugin::rapier::parry::query::details::ray_toi_with_ball[][src]

pub fn ray_toi_with_ball(
    center: &Point<f32, 3_usize>,
    radius: f32,
    ray: &Ray,
    solid: bool
) -> (bool, Option<f32>)

Computes the time of impact of a ray on a ball.

The first result element is true if the ray started inside of the ball.