Skip to content

Commit

Permalink
Fix the other demos
Browse files Browse the repository at this point in the history
  • Loading branch information
idanarye committed Mar 25, 2024
1 parent f722f59 commit 430938b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions demos/src/bin/platformer_2d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ use bevy_tnua_xpbd2d::*;
#[cfg(feature = "xpbd2d")]
use bevy_xpbd_2d::{prelude as xpbd, prelude::*};

use tnua_demos_crate::app_setup_options::AppSetupConfiguration;
use tnua_demos_crate::character_control_systems::platformer_control_systems::{
apply_platformer_controls, CharacterMotionConfigForPlatformerDemo, FallingThroughControlScheme,
};
Expand All @@ -32,6 +33,9 @@ fn main() {
let mut app = App::new();
app.add_plugins(DefaultPlugins);

let app_setup_configuration = AppSetupConfiguration::from_environment();
app.insert_resource(app_setup_configuration.clone());

#[cfg(feature = "rapier2d")]
{
app.add_plugins(RapierPhysicsPlugin::<NoUserData>::default());
Expand Down
4 changes: 4 additions & 0 deletions demos/src/bin/shooter_like.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use bevy_tnua_xpbd3d::*;
#[cfg(feature = "xpbd3d")]
use bevy_xpbd_3d::{prelude as xpbd, prelude::*};

use tnua_demos_crate::app_setup_options::AppSetupConfiguration;
use tnua_demos_crate::character_animating_systems::platformer_animating_systems::{
animate_platformer_character, AnimationState,
};
Expand All @@ -38,6 +39,9 @@ fn main() {
let mut app = App::new();
app.add_plugins(DefaultPlugins);

let app_setup_configuration = AppSetupConfiguration::from_environment();
app.insert_resource(app_setup_configuration.clone());

#[cfg(feature = "rapier3d")]
{
app.add_plugins(RapierPhysicsPlugin::<NoUserData>::default());
Expand Down

0 comments on commit 430938b

Please sign in to comment.