Finer grained traces in flat subregions

This commit is contained in:
numzero 2024-09-28 12:27:46 +03:00
parent 32a2995e7b
commit 01331350e4

View File

@ -236,7 +236,7 @@ impl DebugTraceable for Space {
let Some(ray_outta_flat) = ret.end else { let Some(ray_outta_flat) = ret.end else {
return (hits, RayPath { points }); return (hits, RayPath { points });
}; };
points.extend(self.line(ray_into_flat.pos, ray_outta_flat.pos, 10.0)); points.extend(self.line(ray_into_flat.pos, ray_outta_flat.pos, 1.0));
ray = ray_outta_flat; ray = ray_outta_flat;
} }
panic!("tracing didn't terminate"); panic!("tracing didn't terminate");