Skip to content

Commit

Permalink
[game] Reduce slam camera shake intensity
Browse files Browse the repository at this point in the history
  • Loading branch information
Drewol committed Oct 26, 2024
1 parent 89c2eea commit 84230fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game/src/game.rs
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ impl Game {

let signum = (end - start).signum() as i32;
self.camera.shakes.push(CameraShake::new(
((start - end).abs() * 2.0).to_radians() as _,
((start - end).abs().powf(0.5) * 1.2).to_radians() as _,
signum as _,
20.0,
100.0,
Expand Down

0 comments on commit 84230fa

Please sign in to comment.