-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.rs
More file actions
22 lines (18 loc) · 739 Bytes
/
Copy pathplugin.rs
File metadata and controls
22 lines (18 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use bevy::prelude::*;
use crate::{cleanup_manager::CleanupManagerPlugin, presets_plugin::PresetsPlugin};
use super::type_registry_plugin::TypeRegistryPlugin;
/// # Robocomp Plugin
///
/// Physics-agnostic robot compositor plugin for Bevy.
///
/// Registers marker components, Skein presets, and scene cleanup.
/// Add a physics backend plugin (e.g. [`robocomp_rapier3d::RobocompRapierPlugin`]) to spawn colliders and joints.
pub struct RobocompPlugin;
impl Plugin for RobocompPlugin {
fn build(&self, app: &mut App) {
app.add_plugins(CleanupManagerPlugin)
.add_plugins(TypeRegistryPlugin)
.add_plugins(PresetsPlugin)
.add_systems(Startup, || info!("RobocompPlugin started..."));
}
}