From 1cee805d4a39d51df292095af45a6ac970557a78 Mon Sep 17 00:00:00 2001 From: ghostlyzsh Date: Thu, 29 Jun 2023 20:55:49 -0500 Subject: [PATCH] adjust module breaking --- server/src/main.rs | 2 +- server/src/timer.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/main.rs b/server/src/main.rs index 8e479b1ca725397845001362a7a91cae91efd253..2de79df006f152a7068f7b4690559ac539d1ce56 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -228,7 +228,7 @@ lazy_static! { dt: 1.0 / 20.0, joint_erp: 0.2, erp: 0.5, - max_stabilization_iterations: 8, + max_stabilization_iterations: 16, ..Default::default() }, island_manager: IslandManager::new(), diff --git a/server/src/timer.rs b/server/src/timer.rs index b77b79864e548f16568e875f6cfc60fdc7478fe9..b831f8999e4c363d7449196ebcf59c1141e1e47e 100644 --- a/server/src/timer.rs +++ b/server/src/timer.rs @@ -231,7 +231,7 @@ pub async fn timer_main( if let Some(child) = child { let joint = physics_data.impulse_joint_set .get(child.connection).ok_or("module joint does not exist")?; - if joint.impulses.magnitude() > 0.00006 { + if joint.impulses.magnitude() > 0.00012 { let module: Option; if let Some(Entity::AttachedModule(p_module)) = entities.entities.get_mut(&child.child) @@ -363,7 +363,7 @@ pub async fn timer_main( // displays impulse on joint * 10000 so its visible, use to tune breaking // force //debug!("impulse: {}", joint.impulses.magnitude() * 10000.); - if joint.impulses.magnitude() > 0.00006 { + if joint.impulses.magnitude() > 0.00012 { let module: Option; if let Some(Entity::AttachedModule(p_module)) = entities.entities.get_mut(&child.child)