Crate bevy_inspector_egui_rapier
source · [−]Expand description
[dependencies]
bevy-inspector-egui = "0.9"
bevy-inspector-egui-rapier = { version = "0.1", features = ["rapier3d"] }
use bevy::prelude::*;
use bevy_inspector_egui::WorldInspectorPlugin;
use bevy_inspector_egui_rapier::InspectableRapierPlugin;
use bevy_rapier3d::prelude::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugin(RapierDebugRenderPlugin::default())
.add_plugin(RapierPhysicsPlugin::<NoUserData>::default())
.add_plugin(InspectableRapierPlugin) // <--- register the inspectable UI functions for rapier types
.add_plugin(WorldInspectorPlugin::default())
.run();
}
Structs
Plugin that will add register rapier components on the InspectableRegistry