Skip to content

Commit

Permalink
Better shake
Browse files Browse the repository at this point in the history
  • Loading branch information
opstic committed Mar 29, 2024
1 parent faba3c4 commit 9b3ad63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/level/trigger/shake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ impl TriggerFunction for ShakeTrigger {
return;
}

shake_data.0 = (0.5 + fastrand::f32() * 0.5) * self.strength;
shake_data.1 = fastrand::f32() * TAU;
shake_data.0 = self.strength * 1.5 * fastrand::f32();
shake_data.1 = TAU * fastrand::f32();
}

fn create_system_state(&self, world: &mut World) -> Box<dyn Any + Send + Sync> {
Expand Down

0 comments on commit 9b3ad63

Please sign in to comment.