add .rustfmt, make debug arrow start at origin
This commit is contained in:
parent
f65f0a5bb0
commit
9a741c76ae
2 changed files with 6 additions and 2 deletions
4
.rustfmt.toml
Normal file
4
.rustfmt.toml
Normal file
|
@ -0,0 +1,4 @@
|
|||
imports_granularity = "Crate"
|
||||
group_imports = "StdExternalCrate"
|
||||
wrap_comments = true
|
||||
edition = "2024"
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue