aboutsummaryrefslogtreecommitdiff
path: root/src/pipeline/debug_render_pipeline/debug_render_style.rs
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2022-04-28 13:05:00 +0200
committerSébastien Crozet <developer@crozet.re>2022-04-28 13:05:00 +0200
commit8ffb0d1658d448074f5ca2b77aee33f755761e24 (patch)
tree13cf800b8b4e755ec29a4e73a55bee82624a7f15 /src/pipeline/debug_render_pipeline/debug_render_style.rs
parentfd12d76102884150a40b24ca812fffe35d26d09d (diff)
downloadrapier-8ffb0d1658d448074f5ca2b77aee33f755761e24.tar.gz
rapier-8ffb0d1658d448074f5ca2b77aee33f755761e24.tar.bz2
rapier-8ffb0d1658d448074f5ca2b77aee33f755761e24.zip
Take round shapes into account in 2D debug render
Diffstat (limited to 'src/pipeline/debug_render_pipeline/debug_render_style.rs')
-rw-r--r--src/pipeline/debug_render_pipeline/debug_render_style.rs4
1 files changed, 3 insertions, 1 deletions
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],