diff --git a/examples/ecs/state.rs b/examples/ecs/state.rs index eb130b3125..57b6e4d622 100644 --- a/examples/ecs/state.rs +++ b/examples/ecs/state.rs @@ -119,10 +119,10 @@ fn movement( for mut transform in query.iter_mut() { let mut direction = Vec3::ZERO; if input.pressed(KeyCode::Left) { - direction.x += 1.0; + direction.x -= 1.0; } if input.pressed(KeyCode::Right) { - direction.x -= 1.0; + direction.x += 1.0; } if input.pressed(KeyCode::Up) { direction.y += 1.0;