From 6766ad832d102ba21b9582f61770824fb49828c1 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 22 Nov 2023 17:51:56 -0800 Subject: [PATCH] wrong --- src/model_physics.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/model_physics.rs b/src/model_physics.rs index 8a30951..7300980 100644 --- a/src/model_physics.rs +++ b/src/model_physics.rs @@ -370,9 +370,10 @@ impl MinkowskiMesh<'_>{ let mut best_edge=None; let mut best_d=Planar64::ZERO; //find edge with highest non-negative dot with point + let p=point-self.vert(vert_id); for &directed_edge_id in self.vert_edges(vert_id).iter(){ let edge_n=self.directed_edge_n(directed_edge_id); - let d=point.dot(edge_n); + let d=p.dot(edge_n); if best_d