2025-08-24 09:42:18 -04:00
|
|
|
//bevy system signatures often violate these rules
|
|
|
|
|
#![allow(clippy::type_complexity)]
|
|
|
|
|
#![allow(clippy::too_many_arguments)]
|
|
|
|
|
|
|
|
|
|
use avian3d::prelude::*;
|
|
|
|
|
use bevy::prelude::*;
|
|
|
|
|
|
|
|
|
|
pub struct PhysicsPlugin;
|
|
|
|
|
|
|
|
|
|
impl Plugin for PhysicsPlugin {
|
|
|
|
|
fn build(&self, app: &mut App) {
|
2025-08-28 08:34:40 -04:00
|
|
|
app.add_plugins((
|
|
|
|
|
PhysicsPlugins::default().set(PhysicsInterpolationPlugin::interpolate_all()),
|
|
|
|
|
PhysicsPickingPlugin,
|
2025-08-30 20:41:42 -04:00
|
|
|
))
|
|
|
|
|
.insert_resource(PhysicsPickingSettings {
|
|
|
|
|
require_markers: true,
|
|
|
|
|
});
|
2025-08-24 09:42:18 -04:00
|
|
|
}
|
|
|
|
|
}
|
2025-08-30 20:41:42 -04:00
|
|
|
|
|
|
|
|
#[derive(Component)]
|
|
|
|
|
pub struct Ground;
|