mirror of
https://github.com/eliasstepanik/big_space_with_trim.git
synced 2026-01-11 19:48:27 +00:00
typos and warnings
This commit is contained in:
parent
19d6670145
commit
e049ccf8b3
@ -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,
|
||||||
|
|||||||
@ -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)),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user