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()
},
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 {
max_speed: 10e12,
smoothness: 0.9,

View File

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