From 9b87f06a856c4d673642e210f8b0986cfdbac3af Mon Sep 17 00:00:00 2001 From: Sébastien Crozet Date: Sun, 21 Jan 2024 21:02:23 +0100 Subject: feat: implement new "small-steps" solver + joint improvements --- src_testbed/box2d_backend.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src_testbed/box2d_backend.rs') diff --git a/src_testbed/box2d_backend.rs b/src_testbed/box2d_backend.rs index 9cb4b5f..b9bc97e 100644 --- a/src_testbed/box2d_backend.rs +++ b/src_testbed/box2d_backend.rs @@ -223,11 +223,8 @@ impl Box2dWorld { pub fn step(&mut self, counters: &mut Counters, params: &IntegrationParameters) { counters.step_started(); - self.world.step( - params.dt, - params.max_velocity_iterations as i32, - params.max_stabilization_iterations as i32, - ); + self.world + .step(params.dt, params.num_solver_iterations.get() as i32, 1); counters.step_completed(); } -- cgit