[][src]Function oxygengine_physics_2d::prelude::ncollide2d::query::ray_toi_with_ball

pub fn ray_toi_with_ball<N>(
    center: &Point<N, U2>,
    radius: N,
    ray: &Ray<N>,
    solid: bool
) -> (bool, Option<N>) where
    N: RealField

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.