From bb2a5e2d3566a06fc03aa33f28cec471f95d7169 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 16 Nov 2023 18:40:24 -0800 Subject: [PATCH] workaround stupid monolith --- src/physics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/physics.rs b/src/physics.rs index 7cf6290..7bd8aa8 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -1503,7 +1503,7 @@ impl crate::instruction::InstructionConsumer for PhysicsStat (self.move_state,self.body.acceleration)=self.touching.get_move_state(&self.body,&self.models,&self.style,&self.camera,self.controls,&self.next_mouse,self.time); } let a=self.refresh_walk_target(); - set_acceleration(&mut self.body,&self.touching,&self.models,&style_mesh,a); + set_acceleration(&mut self.body,&self.touching,&self.models,&self.style.mesh(),a); }, (PhysicsCollisionAttributes::Intersect{intersecting: _,general},Collision::Intersect(intersect))=>{ //I think that setting the velocity to 0 was preventing surface contacts from entering an infinite loop