summaryrefslogtreecommitdiff
path: root/src/sim/rb_manager/debug_render.rs
diff options
context:
space:
mode:
authorKai Stevenson <kai@kaistevenson.com>2026-08-22 16:49:56 -0700
committerKai Stevenson <kai@kaistevenson.com>2026-08-22 16:49:56 -0700
commitbdad89910dcf3a56790dba60ed1f0db679432323 (patch)
tree19e65e2d0e9fa4a6227abc71ef28a6dd622161f0 /src/sim/rb_manager/debug_render.rs
parent1a515237afb7ad09353a65f5fbc6e98a7c29ce8e (diff)
refactor entities
Diffstat (limited to 'src/sim/rb_manager/debug_render.rs')
-rw-r--r--src/sim/rb_manager/debug_render.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sim/rb_manager/debug_render.rs b/src/sim/rb_manager/debug_render.rs
index 342fc5b..532d9a6 100644
--- a/src/sim/rb_manager/debug_render.rs
+++ b/src/sim/rb_manager/debug_render.rs
@@ -1,6 +1,6 @@
use rapier2d::pipeline::{DebugColor, DebugRenderBackend, DebugRenderObject};
-use crate::config::PIXELS_TO_METRES;
+use crate::config::CELLS_TO_METRES;
#[repr(C)]
#[derive(Copy, Clone, bytemuck::Pod, bytemuck::Zeroable)]
@@ -24,11 +24,11 @@ impl DebugRenderBackend for DebugLineBuffer {
) {
let color = hsla_to_linear_rgba(color);
self.vertices.push(DebugVertex {
- position: [a.x * PIXELS_TO_METRES, a.y * PIXELS_TO_METRES],
+ position: [a.x * CELLS_TO_METRES, a.y * CELLS_TO_METRES],
color,
});
self.vertices.push(DebugVertex {
- position: [b.x * PIXELS_TO_METRES, b.y * PIXELS_TO_METRES],
+ position: [b.x * CELLS_TO_METRES, b.y * CELLS_TO_METRES],
color,
});
}