switch to bevy-third-person-camera for orbit cam

This commit is contained in:
Schrottkatze 2025-05-21 15:56:58 +02:00
parent f518a2c670
commit 2e7de9f296
Signed by: schrottkatze
SSH key fingerprint: SHA256:FPOYVeBy3QP20FEM42uWF1Wa/Qhlk+L3S2+Wuau/Auo
6 changed files with 1075 additions and 100 deletions

View file

@ -13,11 +13,11 @@ mod scene;
struct GameplaySet;
pub fn plugin(app: &mut App) {
app.add_plugins(camera::plugin)
.add_systems(OnEnter(AppState::Ingame), scene::setup.in_set(GameplaySet))
app.add_systems(OnEnter(AppState::Ingame), scene::setup.in_set(GameplaySet))
.add_systems(
OnExit(AppState::Ingame),
despawn::<cleanup::Scene>.in_set(GameplaySet),
);
)
.add_plugins(camera::plugin);
app.configure_sets(Update, GameplaySet.run_if(in_state(AppState::Ingame)));
}