Kinematic character controller (#11)
This commit is contained in:
@@ -3,6 +3,7 @@ mod alien;
|
||||
mod billboards;
|
||||
mod camera;
|
||||
mod cash;
|
||||
mod controller;
|
||||
mod controls;
|
||||
mod cutscene;
|
||||
mod gates;
|
||||
@@ -26,9 +27,8 @@ use bevy::core_pipeline::tonemapping::Tonemapping;
|
||||
use bevy::prelude::*;
|
||||
use bevy::render::view::ColorGrading;
|
||||
use bevy::scene::SceneInstanceReady;
|
||||
use bevy_tnua::prelude::TnuaControllerPlugin;
|
||||
use bevy_tnua_avian3d::TnuaAvian3dPlugin;
|
||||
use bevy_trenchbroom::prelude::*;
|
||||
use controller::CharacterControllerPlugin;
|
||||
use physics_layers::GameLayer;
|
||||
|
||||
#[derive(Resource, Reflect, Debug)]
|
||||
@@ -69,10 +69,7 @@ fn main() {
|
||||
// });
|
||||
|
||||
app.add_plugins(PhysicsPlugins::default());
|
||||
app.add_plugins((
|
||||
TnuaControllerPlugin::new(FixedUpdate),
|
||||
TnuaAvian3dPlugin::new(FixedUpdate),
|
||||
));
|
||||
app.add_plugins(CharacterControllerPlugin);
|
||||
|
||||
// app.add_plugins(PhysicsDebugPlugin::default());
|
||||
// app.add_plugins(bevy_inspector_egui::quick::WorldInspectorPlugin::default());
|
||||
|
||||
Reference in New Issue
Block a user