Compare commits
No commits in common. "400404e6ca66a476a969511d5c4d1b7e299c5044" and "eceb4b329ee0c594c4ecf029287207ccded751d9" have entirely different histories.
400404e6ca
...
eceb4b329e
|
@ -859,13 +859,11 @@ fn handle_wants_acceleration(
|
|||
}
|
||||
|
||||
if accel.direction != DVec3::ZERO {
|
||||
// Player is pressing AWSD keys.
|
||||
// When braking AND accelerating, boost acceleration a bit to
|
||||
// overcome the braking and cause a slow acceleration:
|
||||
// Player is pressing AWSD keys
|
||||
let brake_factor = if accel.brake { 1.10 } else { 1.0 };
|
||||
delta_v += accel.direction.normalize() * brake_factor;
|
||||
} else if accel.brake {
|
||||
// Player is only pressing space.
|
||||
// Player is only pressing space
|
||||
allow_fullstop = true;
|
||||
}
|
||||
|
||||
|
@ -957,7 +955,7 @@ fn handle_wants_acceleration(
|
|||
sinks.get(&audio::Sfx::Thruster),
|
||||
),
|
||||
(
|
||||
0.6,
|
||||
1.0,
|
||||
1.0,
|
||||
actor::EngineType::Ion,
|
||||
sinks.get(&audio::Sfx::Ion),
|
||||
|
|
Loading…
Reference in a new issue