Skip to content

Commit

Permalink
Better rigidbody particles
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac8668 committed Feb 4, 2024
1 parent 891a8d0 commit 91e3441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rigidbody.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ pub fn update_rigidibodies(
commands.spawn(Particle {
atom: *atom,
velocity: vel_point.normalize_or_zero()
* (vel_point.length() * mass_prop.mass / 1000.).min(16.),
* vel_point.length().clamp(0., 8.),
pos: pos.round(),
..Default::default()
});
Expand Down

0 comments on commit 91e3441

Please sign in to comment.