coreheart/crates/physics/src/lib.rs

24 lines
576 B
Rust
Raw Normal View History

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) {
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;