Add comments for the debug-renderer
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
use crate::harness::Harness;
|
||||
use crate::lines::DebugLines;
|
||||
use bevy::prelude::*;
|
||||
use rapier::math::{Point, Real, DIM};
|
||||
use rapier::math::{Point, Real};
|
||||
use rapier::pipeline::{
|
||||
DebugRenderBackend, DebugRenderMode, DebugRenderObject, DebugRenderPipeline,
|
||||
};
|
||||
use std::fmt::Debug;
|
||||
|
||||
pub struct RapierDebugRenderPlugin {
|
||||
depth_test: bool,
|
||||
@@ -19,14 +18,6 @@ impl Default for RapierDebugRenderPlugin {
|
||||
}
|
||||
}
|
||||
|
||||
impl RapierDebugRenderPlugin {
|
||||
pub fn with_depth_test(enabled: bool) -> Self {
|
||||
Self {
|
||||
depth_test: enabled,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Plugin for RapierDebugRenderPlugin {
|
||||
fn build(&self, app: &mut App) {
|
||||
app.add_plugin(crate::lines::DebugLinesPlugin::with_depth_test(
|
||||
|
||||
Reference in New Issue
Block a user