diff options
| author | Kai Stevenson <kai@kaistevenson.com> | 2026-08-23 23:35:57 -0700 |
|---|---|---|
| committer | Kai Stevenson <kai@kaistevenson.com> | 2026-08-23 23:35:57 -0700 |
| commit | 5bedb15c61ad26824dbe6053f0b66b11b6ad5047 (patch) | |
| tree | 97c91f976a9ccaf81c3fb91d40f18752a81d7685 /src/sim/rb_manager/debug_render.rs | |
| parent | 245d8eb77d7b92a50a48d4b953e5a8e0d789307c (diff) | |
fix scaling
Diffstat (limited to 'src/sim/rb_manager/debug_render.rs')
| -rw-r--r-- | src/sim/rb_manager/debug_render.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/sim/rb_manager/debug_render.rs b/src/sim/rb_manager/debug_render.rs index 532d9a6..77eba7a 100644 --- a/src/sim/rb_manager/debug_render.rs +++ b/src/sim/rb_manager/debug_render.rs @@ -1,7 +1,5 @@ use rapier2d::pipeline::{DebugColor, DebugRenderBackend, DebugRenderObject}; -use crate::config::CELLS_TO_METRES; - #[repr(C)] #[derive(Copy, Clone, bytemuck::Pod, bytemuck::Zeroable)] pub struct DebugVertex { @@ -24,11 +22,11 @@ impl DebugRenderBackend for DebugLineBuffer { ) { let color = hsla_to_linear_rgba(color); self.vertices.push(DebugVertex { - position: [a.x * CELLS_TO_METRES, a.y * CELLS_TO_METRES], + position: [a.x, a.y], color, }); self.vertices.push(DebugVertex { - position: [b.x * CELLS_TO_METRES, b.y * CELLS_TO_METRES], + position: [b.x, b.y], color, }); } |
