From e28f8b4ef5c0744912afd49d8d1ba9a94e144613 Mon Sep 17 00:00:00 2001 From: Kai Stevenson Date: Mon, 24 Aug 2026 20:15:21 -0700 Subject: fixes for small entities --- src/sim/lib/force.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/sim/lib') diff --git a/src/sim/lib/force.rs b/src/sim/lib/force.rs index c110c29..c6cfaf0 100644 --- a/src/sim/lib/force.rs +++ b/src/sim/lib/force.rs @@ -81,7 +81,7 @@ pub fn apply_explosion( .physics_manager .world .intersect_aabb_conservative( - Aabb::new(centre - radius as f32, (centre + radius as f32)), + Aabb::new(centre - radius as f32, centre + radius as f32), QueryFilter::only_dynamic(), ); @@ -91,8 +91,8 @@ pub fn apply_explosion( if let Some(h) = h && let Some(body) = ctx.rb_manager.physics_manager.world.bodies.get_mut(h) { - // magic divisor number for good vibes - body.apply_impulse(get_vel(body.translation()) / 3.0, true); + // magic number for good vibes + body.apply_impulse(get_vel(body.translation()) * 3.0, true); } } } -- cgit v1.3.1