diff options
| author | Sébastien Crozet <developer@crozet.re> | 2023-01-22 19:01:09 +0100 |
|---|---|---|
| committer | Sébastien Crozet <developer@crozet.re> | 2023-01-22 19:01:09 +0100 |
| commit | 26596bdc2ef7537619ab763668381f8b5496b726 (patch) | |
| tree | 1ddab05177fba9f61ad68c779c1f9bb09fd35a64 /src/pipeline/debug_render_pipeline/debug_render_pipeline.rs | |
| parent | 1a4183cc94acc3210e4ae467abbea7d68e51c5ff (diff) | |
| download | rapier-voxels.tar.gz rapier-voxels.tar.bz2 rapier-voxels.zip | |
Voxel fracture experimentsvoxels
Diffstat (limited to 'src/pipeline/debug_render_pipeline/debug_render_pipeline.rs')
| -rw-r--r-- | src/pipeline/debug_render_pipeline/debug_render_pipeline.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pipeline/debug_render_pipeline/debug_render_pipeline.rs b/src/pipeline/debug_render_pipeline/debug_render_pipeline.rs index bb9fd78..423a309 100644 --- a/src/pipeline/debug_render_pipeline/debug_render_pipeline.rs +++ b/src/pipeline/debug_render_pipeline/debug_render_pipeline.rs @@ -402,6 +402,7 @@ impl DebugRenderPipeline { let vtx = s.to_polyline(self.style.border_subdivisions); backend.draw_line_strip(object, &vtx, pos, &Vector::repeat(1.0), color, true) } + TypedShape::Voxels(_) => todo!(), TypedShape::Custom(_) => {} } } @@ -555,6 +556,9 @@ impl DebugRenderPipeline { let (vtx, idx) = s.to_outline(self.style.border_subdivisions); backend.draw_polyline(object, &vtx, &idx, pos, &Vector::repeat(1.0), color) } + TypedShape::Voxels(s) => s.iter_outline(|a, b| { + backend.draw_line(object, pos * a, pos * b, color); + }), TypedShape::Custom(_) => {} } } |
