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

pub fn ray_toi_with_ball(
    center: &OPoint<f32, Const<2_usize>>,
    radius: f32,
    ray: &Ray,
    solid: bool
) -> (bool, Option<f32>)
Expand description

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.