cleanup
This commit is contained in:
parent
c56b5d6d74
commit
8a07e9cfb7
|
@ -543,10 +543,7 @@ fn handle_wants_maxvelocity(
|
||||||
if total > maxv.0 {
|
if total > maxv.0 {
|
||||||
v.0 = DVec3::splat(0.0);
|
v.0 = DVec3::splat(0.0);
|
||||||
}
|
}
|
||||||
// already not moving
|
} else {
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: respect engine parameters for different thrusts for different directions
|
// TODO: respect engine parameters for different thrusts for different directions
|
||||||
let avg_thrust =
|
let avg_thrust =
|
||||||
(engine.thrust_forward + engine.thrust_back + engine.thrust_sideways) / 3.0;
|
(engine.thrust_forward + engine.thrust_back + engine.thrust_sideways) / 3.0;
|
||||||
|
@ -556,6 +553,7 @@ fn handle_wants_maxvelocity(
|
||||||
v.0 = DVec3::splat(0.0);
|
v.0 = DVec3::splat(0.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn handle_damage(
|
fn handle_damage(
|
||||||
|
|
Loading…
Reference in a new issue