add .rustfmt, make debug arrow start at origin

This commit is contained in:
joe 2025-10-12 16:11:53 -07:00
parent f65f0a5bb0
commit 9a741c76ae
2 changed files with 6 additions and 2 deletions

4
.rustfmt.toml Normal file
View file

@ -0,0 +1,4 @@
imports_granularity = "Crate"
group_imports = "StdExternalCrate"
wrap_comments = true
edition = "2024"

View file

@ -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,