Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
rewin123 committed Mar 24, 2024
1 parent b6bc840 commit 41585bf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion crates/editor_ui/src/game_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ pub fn set_camera_viewport(
primary_window: Query<&mut Window, With<PrimaryWindow>>,
egui_settings: Res<bevy_egui::EguiSettings>,
mut cameras: Query<&mut Camera, With<EditorCameraMarker>>,

) {
let Ok(mut cam) = cameras.get_single_mut() else {
return;
Expand Down
1 change: 0 additions & 1 deletion crates/editor_ui/src/ui_plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,6 @@ pub fn ui_camera_block(
};
if let Some(area) = game_view.viewport_rect {
if area.contains(pos) {

} else {
*state = EditorCameraEnabled(false);
}
Expand Down
5 changes: 2 additions & 3 deletions examples/platformer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fn simple_tab_system(mut ui: NonSendMut<EditorUiRef>) {

fn configure_editor(mut load_event: EventWriter<EditorEvent>) {
load_event.send(EditorEvent::Load(EditorPrefabPath::File(
"scenes/platformer.scn.ron".to_string()
"scenes/platformer.scn.ron".to_string(),
)));
}

Expand Down Expand Up @@ -102,7 +102,7 @@ fn move_player(
}
info!("time of impact: {:?} {:?}", hit.entity, hit.time_of_impact);
let frw = transform.forward();
let up = transform.up();
// let up = transform.up();
let right = transform.right();

let mut target_vel = Vector::new(0.0, 0.0, 0.0);
Expand Down Expand Up @@ -139,7 +139,6 @@ fn move_player(
controller.jumped = false;
}


vel.0 = cur_vel;
} else {
info!("no hits");
Expand Down

0 comments on commit 41585bf

Please sign in to comment.