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)|