aboutsummaryrefslogtreecommitdiff
path: root/src/pipeline
diff options
context:
space:
mode:
authorSoham <mastpanchalsoham@gmail.com>2023-08-24 19:54:37 +0530
committerSébastien Crozet <developer@crozet.re>2023-12-09 21:25:43 +0100
commit4015cefebf3924c6b1dbf9caa5c8236a1de13108 (patch)
tree3f4f683db48b4a446f9a68f2f23ff558c209c889 /src/pipeline
parente9ea2ca10b3058a6ac2d7f4b79d351ef18ad3c06 (diff)
downloadrapier-4015cefebf3924c6b1dbf9caa5c8236a1de13108.tar.gz
rapier-4015cefebf3924c6b1dbf9caa5c8236a1de13108.tar.bz2
rapier-4015cefebf3924c6b1dbf9caa5c8236a1de13108.zip
feat/Color of disabled object will change
Diffstat (limited to 'src/pipeline')
-rw-r--r--src/pipeline/debug_render_pipeline/debug_render_style.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pipeline/debug_render_pipeline/debug_render_style.rs b/src/pipeline/debug_render_pipeline/debug_render_style.rs
index 33630aa..0d4f1ae 100644
--- a/src/pipeline/debug_render_pipeline/debug_render_style.rs
+++ b/src/pipeline/debug_render_pipeline/debug_render_style.rs
@@ -36,6 +36,10 @@ pub struct DebugRenderStyle {
/// multiplied by this array. (For a joint, both attached rigid-bodies must be sleeping
/// or non-dynamic for this multiplier to be applied).
pub sleep_color_multiplier: [f32; 4],
+ /// If a rigid-body is disabled, its attached entities will have their colors
+ /// multiplied by this array. (For a joint, both attached rigid-bodies must be disabled
+ /// for this multiplier to be applied).
+ pub disable_color_multiplier: [f32; 4],
/// The length of the local coordinate axes rendered for a rigid-body.
pub rigid_body_axes_length: Real,
/// The collor for the segments joining the two contact points.
@@ -62,6 +66,7 @@ impl Default for DebugRenderStyle {
multibody_joint_anchor_color: [300.0, 1.0, 0.4, 1.0],
multibody_joint_separation_color: [0.0, 1.0, 0.4, 1.0],
sleep_color_multiplier: [1.0, 1.0, 0.2, 1.0],
+ disable_color_multiplier: [0.25, 1.0, 0.2, 1.0],
rigid_body_axes_length: 0.5,
contact_depth_color: [120.0, 1.0, 0.4, 1.0],
contact_normal_color: [0.0, 1.0, 1.0, 1.0],