Skip to main content

ray_cast_segment

Function ray_cast_segment 

Source
pub fn ray_cast_segment(
    shape: &Segment,
    input: &RayCastInput,
    one_sided: bool,
) -> CastOutput
Expand description

Ray cast versus segment shape in local space. Optionally treat the segment as one-sided with hits from the left side being treated as a miss. (b2RayCastSegment)