typos and warnings

This commit is contained in:
Aevyrie Roessler 2023-01-29 00:11:47 -08:00
parent 19d6670145
commit e049ccf8b3
No known key found for this signature in database
GPG Key ID: F975B68AD0BCCF40
2 changed files with 7 additions and 7 deletions

View File

@ -30,7 +30,7 @@ fn setup(
..default() ..default()
}, },
GridCell::<i128>::default(), // All spatial entities need this component GridCell::<i128>::default(), // All spatial entities need this component
FloatingOrigin, // Important: marks this as the entity to use as teh floating origin FloatingOrigin, // Important: marks this as the entity to use as the floating origin
CameraController { CameraController {
max_speed: 10e12, max_speed: 10e12,
smoothness: 0.9, smoothness: 0.9,

View File

@ -9,11 +9,11 @@ use bevy::{
pub struct CameraControllerPlugin; pub struct CameraControllerPlugin;
impl Plugin for CameraControllerPlugin { impl Plugin for CameraControllerPlugin {
fn build(&self, app: &mut App) { fn build(&self, app: &mut App) {
app.init_resource::<CameraInput>() app.init_resource::<CameraInput>().add_system_set_to_stage(
.add_system(default_camera_inputs.before(camera_controller))
.add_system_to_stage(
CoreStage::PostUpdate, CoreStage::PostUpdate,
camera_controller.after(TransformSystem::TransformPropagate), SystemSet::new()
.with_system(default_camera_inputs.before(camera_controller))
.with_system(camera_controller.after(TransformSystem::TransformPropagate)),
); );
} }
} }