Debug-renderer: add rendering of contacts, solver contacts, and collider AABBs

This commit is contained in:
Sébastien Crozet
2022-05-30 18:27:52 +02:00
parent ab8833f275
commit 0d05536ab6
6 changed files with 106 additions and 14 deletions

View File

@@ -25,7 +25,7 @@ impl Plugin for RapierDebugRenderPlugin {
))
.insert_resource(DebugRenderPipeline::new(
Default::default(),
!DebugRenderMode::RIGID_BODY_AXES,
!DebugRenderMode::RIGID_BODY_AXES & !DebugRenderMode::COLLIDER_AABBS,
))
.add_system_to_stage(CoreStage::Update, debug_render_scene);
}
@@ -68,5 +68,6 @@ fn debug_render_scene(
&harness.physics.colliders,
&harness.physics.impulse_joints,
&harness.physics.multibody_joints,
&harness.physics.narrow_phase,
);
}