update comment

This commit is contained in:
yuni 2024-04-05 23:11:10 +02:00
parent e44ecaabcd
commit b91effd5b2

View file

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