From 0dc462a3b11567a839edc616b7270e79d45d27b6 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 9 Jan 2025 20:38:32 -0800 Subject: [PATCH] comment infinite loop avoidance --- strafe-client/src/physics.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/strafe-client/src/physics.rs b/strafe-client/src/physics.rs index 924954e..16bbe48 100644 --- a/strafe-client/src/physics.rs +++ b/strafe-client/src/physics.rs @@ -1138,6 +1138,7 @@ impl PhysicsContext{ collector.collect(minkowski.predict_collision_in(relative_body,collector.time()) //temp (?) code to avoid collision loops .map_or(None,|(face,dt)|{ + // this must be rounded to avoid the infinite loop when hitting the start zone let time=relative_body.time+dt.into(); if time<=state.time{None}else{Some((time,face,dt))}}) .map(|(time,face,dt)|