2023-03-10 19:45:01 +00:00
|
|
|
use bevy::prelude::{App, Color, Plugin};
|
2022-01-14 06:05:51 +00:00
|
|
|
|
2023-03-10 19:45:01 +00:00
|
|
|
// use crate::planet::CyberPlanet;
|
2022-01-14 06:05:51 +00:00
|
|
|
|
2022-01-29 21:31:15 +00:00
|
|
|
pub const BISEXY_COLOR: Color = Color::hsla(292.0, 0.9, 0.60, 1.1);
|
|
|
|
|
2022-01-14 06:05:51 +00:00
|
|
|
// public plugin
|
|
|
|
pub struct CyberGlamorPlugin;
|
|
|
|
impl Plugin for CyberGlamorPlugin {
|
|
|
|
fn build(&self, app: &mut App) {
|
2023-01-27 01:16:05 +00:00
|
|
|
{
|
|
|
|
use bevy_rapier3d::render::{
|
|
|
|
DebugRenderMode, DebugRenderStyle, RapierDebugRenderPlugin,
|
|
|
|
};
|
|
|
|
let style = DebugRenderStyle {
|
|
|
|
multibody_joint_anchor_color: Color::GREEN.as_rgba_f32(),
|
|
|
|
..Default::default()
|
|
|
|
};
|
|
|
|
let mode = DebugRenderMode::CONTACTS
|
|
|
|
| DebugRenderMode::SOLVER_CONTACTS
|
|
|
|
| DebugRenderMode::JOINTS
|
|
|
|
| DebugRenderMode::RIGID_BODY_AXES;
|
|
|
|
|
|
|
|
let rplugin = RapierDebugRenderPlugin {
|
|
|
|
style,
|
|
|
|
always_on_top: true,
|
|
|
|
enabled: true,
|
|
|
|
mode,
|
|
|
|
};
|
|
|
|
|
|
|
|
app.add_plugin(rplugin);
|
|
|
|
}
|
2022-01-14 06:05:51 +00:00
|
|
|
}
|
|
|
|
}
|