From fd12d76102884150a40b24ca812fffe35d26d09d Mon Sep 17 00:00:00 2001 From: Sébastien Crozet Date: Thu, 28 Apr 2022 13:04:14 +0200 Subject: Fix panic when the world is stepped with dt = 0 --- src/dynamics/integration_parameters.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dynamics') diff --git a/src/dynamics/integration_parameters.rs b/src/dynamics/integration_parameters.rs index 84c8117..6a86a2a 100644 --- a/src/dynamics/integration_parameters.rs +++ b/src/dynamics/integration_parameters.rs @@ -93,12 +93,12 @@ impl IntegrationParameters { /// The ERP coefficient, multiplied by the inverse timestep length. pub fn erp_inv_dt(&self) -> Real { - self.erp / self.dt + self.erp * self.inv_dt() } /// The joint ERP coefficient, multiplied by the inverse timestep length. pub fn joint_erp_inv_dt(&self) -> Real { - self.joint_erp / self.dt + self.joint_erp * self.inv_dt() } /// The CFM factor to be used in the constraints resolution. -- cgit