diff --git a/src/vvlib/intersections.rs b/src/vvlib/intersections.rs index 8812e0f..c737ff9 100644 --- a/src/vvlib/intersections.rs +++ b/src/vvlib/intersections.rs @@ -605,6 +605,7 @@ pub fn test_ray_x_octtree() { let hitnorm = col.hit_data.normal.local.clone(); let hitvox = hitloc - (hitnorm * 0.5); dbg!(hitvox.round()); + assert_eq!(hitvox.round(), path_local); } { @@ -628,9 +629,9 @@ pub fn test_ray_x_octtree() { let hitnorm = col.hit_data.normal.local.clone(); let hitvox = hitloc - (hitnorm * 0.5); dbg!(hitvox.round()); + assert_eq!(hitvox.round(), path_local); } } - panic!(); } #[test] pub fn test_ray_x_bounding_collisions() {