From cb9307bdf2f8e350feb8ee97f308a4fdb7a85c48 Mon Sep 17 00:00:00 2001 From: Rhys Lloyd Date: Tue, 2 Dec 2025 10:12:46 -0800 Subject: [PATCH] comments --- engine/physics/src/minimum_difference.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/physics/src/minimum_difference.rs b/engine/physics/src/minimum_difference.rs index a203a9ce..0882d624 100644 --- a/engine/physics/src/minimum_difference.rs +++ b/engine/physics/src/minimum_difference.rs @@ -584,6 +584,9 @@ impl MinkowskiMesh<'_>{ } /// This function drops a vertex down to an edge or a face if the path from infinity did not cross any vertex-edge boundaries but the point is supposed to have already crossed a boundary down from a vertex fn crawl_to_closest_fev(&self,simplex:Simplex<3>,point:Planar64Vec3)->FEV::{ + // naively start at the closest vertex + // the closest vertex is not necessarily the one with the fewest boundary hops + // but it doesn't matter, we will get there regardless. let (vert_id,best_distance_squared)=simplex.into_iter().map(|vert_id|{ let diff=point-self.vert(vert_id); (vert_id,diff.dot(diff))