parry2d::query::sat

Function segment_cuboid_find_local_separating_normal_oneway

Source
pub fn segment_cuboid_find_local_separating_normal_oneway(
    segment1: &Segment,
    shape2: &Cuboid,
    pos12: &Isometry<f32>,
) -> (f32, Vector<f32>)
Expand description

Finds the best separating normal between a cuboid and a segment.

Only the normals of segment1 are tested.