From 8ffb0d1658d448074f5ca2b77aee33f755761e24 Mon Sep 17 00:00:00 2001 From: Sébastien Crozet Date: Thu, 28 Apr 2022 13:05:00 +0200 Subject: Take round shapes into account in 2D debug render --- src/pipeline/debug_render_pipeline/debug_render_style.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/pipeline/debug_render_pipeline/debug_render_style.rs') diff --git a/src/pipeline/debug_render_pipeline/debug_render_style.rs b/src/pipeline/debug_render_pipeline/debug_render_style.rs index 9d4b6cc..5401596 100644 --- a/src/pipeline/debug_render_pipeline/debug_render_style.rs +++ b/src/pipeline/debug_render_pipeline/debug_render_style.rs @@ -3,9 +3,10 @@ /// The default colors are provided in HSLA (Hue Saturation Lightness Alpha) format. pub type DebugColor = [f32; 4]; -#[derive(Clone, Debug, PartialEq)] +#[derive(Copy, Clone, Debug, PartialEq)] pub struct DebugRenderStyle { pub subdivisions: u32, + pub border_subdivisions: u32, pub collider_dynamic_color: DebugColor, pub collider_fixed_color: DebugColor, pub collider_kinematic_color: DebugColor, @@ -22,6 +23,7 @@ impl Default for DebugRenderStyle { fn default() -> Self { Self { subdivisions: 20, + border_subdivisions: 5, collider_dynamic_color: [340.0, 1.0, 0.3, 1.0], collider_kinematic_color: [20.0, 1.0, 0.3, 1.0], collider_fixed_color: [30.0, 1.0, 0.4, 1.0], -- cgit