robocomp_rapier3d 0.1.0

Rapier physics integration for robocomp
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use bevy::prelude::*;
use robocomp::RobocompPlugin;

use crate::pre_processor_plugin::PreProcessorPlugin;

/// # Robocomp Rapier Plugin
///
/// Rapier physics backend for the robot compositor.
///
/// Bundles [`RobocompPlugin`] with the Rapier pre-processor that spawns colliders and joints.
pub struct RobocompRapierPlugin;

impl Plugin for RobocompRapierPlugin {
    fn build(&self, app: &mut App) {
        app.add_plugins((RobocompPlugin, PreProcessorPlugin))
            .add_systems(Startup, || info!("RobocompRapierPlugin started..."));
    }
}