update comment
This commit is contained in:
parent
e44ecaabcd
commit
b91effd5b2
|
@ -226,7 +226,7 @@ pub fn apply_input_to_player(
|
||||||
let mut acceleration_total: DVec3 = (actor::ENGINE_SPEED_FACTOR * dt) as f64 * acceleration_global;
|
let mut acceleration_total: DVec3 = (actor::ENGINE_SPEED_FACTOR * dt) as f64 * acceleration_global;
|
||||||
let threshold = 1e-5;
|
let threshold = 1e-5;
|
||||||
if key_input.pressed(settings.key_stop) {
|
if key_input.pressed(settings.key_stop) {
|
||||||
// Decelerate
|
// Decelerate (or match velocity to target_v)
|
||||||
let dv = v.0 - target_v;
|
let dv = v.0 - target_v;
|
||||||
for i in 0..3 {
|
for i in 0..3 {
|
||||||
if dv[i].abs() < threshold {
|
if dv[i].abs() < threshold {
|
||||||
|
|
Loading…
Reference in a new issue