diff --git a/simulator/src/main.rs b/simulator/src/main.rs index f7462f5..9b3dd93 100644 --- a/simulator/src/main.rs +++ b/simulator/src/main.rs @@ -105,16 +105,16 @@ pub async fn run() { InputEvent::KeyPressed { key, .. } => { match key { Key::ArrowLeft => { - state.camera_mut().translate(Vector3::new(-1.0, 0.0, 0.0)); - } - Key::ArrowRight => { state.camera_mut().translate(Vector3::new(1.0, 0.0, 0.0)); } + Key::ArrowRight => { + state.camera_mut().translate(Vector3::new(-1.0, 0.0, 0.0)); + } Key::ArrowUp => { - state.camera_mut().translate(Vector3::new(0.0, 1.0, 0.0)); + state.camera_mut().translate(Vector3::new(0.0, -1.0, 0.0)); } Key::ArrowDown => { - state.camera_mut().translate(Vector3::new(0.0, -1.0, 0.0)); + state.camera_mut().translate(Vector3::new(0.0, 1.0, 0.0)); } Key::Period => { let mut sim = simulator.write().unwrap();