Skip to content

Commit

Permalink
Possible fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Indy2222 committed Oct 9, 2023
1 parent 65199e3 commit d7db29c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/pathing/src/interval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ impl SegmentInterval {
let b = RayProjection::calculate(ray_b, target);

let side = which_side(ray_a.origin, ray_a.point_at(1.), ray_b.point_at(1.));
debug_assert!(side != Side::Straight || ray_a.dir.dot(&ray_b.dir) < 0.);
// TODO: for some reason this assert fails due to the ray origin and
// self.segment lying on a line.
// debug_assert!(side != Side::Straight || ray_a.dir.dot(&ray_b.dir) < 0.);
SegmentProjection::new(a, b, side)
}

Expand Down

0 comments on commit d7db29c

Please sign in to comment.