Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
Removed smooth cameras crate
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamkob12 committed Oct 14, 2023
1 parent 9288170 commit 3556dea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ edition = "2021"
bevy = "0.11.3"
bevy_atmosphere = "0.7.0"
bevy_meshem = { git = "https://github.com/Adamkob12/bevy_meshem.git" }
smooth-bevy-cameras = {git = "https://github.com/bonsairobo/smooth-bevy-cameras.git"}
futures-lite = "1.13.0"
noise = "0.8.2"
17 changes: 6 additions & 11 deletions src/player/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
pub mod movement;
#[allow(unused_imports)]
use crate::utils::{one_d_cords, position_to_chunk};
use crate::*;
use bevy::ecs::event::{Events, ManualEventReader};
use bevy::input::mouse::MouseMotion;
use bevy::window::{CursorGrabMode, PrimaryWindow};
use bevy::{
core_pipeline::experimental::taa::{TemporalAntiAliasBundle, TemporalAntiAliasPlugin},
pbr::{
Expand All @@ -8,17 +14,6 @@ use bevy::{
prelude::*,
render::camera::TemporalJitter,
};
#[allow(unused_imports)]
use smooth_bevy_cameras::{
controllers::fps::{FpsCameraBundle, FpsCameraController, FpsCameraPlugin},
LookTransformPlugin,
};

use crate::utils::{one_d_cords, position_to_chunk};
use crate::*;
use bevy::ecs::event::{Events, ManualEventReader};
use bevy::input::mouse::MouseMotion;
use bevy::window::{CursorGrabMode, PrimaryWindow};
use movement::*;
// ALWAYS ODD!
pub(crate) const CAGE_SIZE: usize = 7;
Expand Down
6 changes: 0 additions & 6 deletions src/player/movement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ use bevy::{
prelude::*,
render::camera::TemporalJitter,
};
use smooth_bevy_cameras::LookTransform;
#[allow(unused_imports)]
use smooth_bevy_cameras::{
controllers::fps::{ControlEvent, FpsCameraBundle, FpsCameraController, FpsCameraPlugin},
LookTransformPlugin,
};

/// Grabs the cursor when game first starts
pub(super) fn initial_grab_cursor(mut primary_window: Query<&mut Window, With<PrimaryWindow>>) {
Expand Down

0 comments on commit 3556dea

Please sign in to comment.