From d1118af0041f54225431d8e79455a7686df52cf4 Mon Sep 17 00:00:00 2001 From: adia redmoon Date: Wed, 27 Mar 2024 08:09:52 -0700 Subject: [PATCH] tentative working rayxocttree (no optimization) --- src/vvlib/intersections.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() {