diff --git a/.rustfmt.toml b/.rustfmt.toml new file mode 100644 index 0000000..8feb93e --- /dev/null +++ b/.rustfmt.toml @@ -0,0 +1,4 @@ +imports_granularity = "Crate" +group_imports = "StdExternalCrate" +wrap_comments = true +edition = "2024" diff --git a/src/main.rs b/src/main.rs index 9317a5b..dea72a2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -39,8 +39,8 @@ impl Joid { let steer = rot.lerp(steer, len / max); self.rot = steer.to_angle().to_degrees(); draw_line( - 0., - 0., + x_max / 2.0, + y_max / 2.0, steer.x * 10.0, steer.y * 10.0, 20.0,