From 91e3441291da951e9f5707af4e97d0d2e76bc764 Mon Sep 17 00:00:00 2001 From: Isaac Turci <78173025+Zac8668@users.noreply.github.com> Date: Sat, 3 Feb 2024 23:52:32 -0300 Subject: [PATCH] Better rigidbody particles --- src/rigidbody.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rigidbody.rs b/src/rigidbody.rs index 5227f81..e1a92f9 100644 --- a/src/rigidbody.rs +++ b/src/rigidbody.rs @@ -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() });