From efba2a8f195f0d246d4ca2a2a261201ffcc5dcfe Mon Sep 17 00:00:00 2001 From: Rhys Lloyd Date: Mon, 24 Nov 2025 13:54:18 -0800 Subject: [PATCH] stuff --- engine/physics/src/minimum_difference.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/engine/physics/src/minimum_difference.rs b/engine/physics/src/minimum_difference.rs index 2493650b..357510b7 100644 --- a/engine/physics/src/minimum_difference.rs +++ b/engine/physics/src/minimum_difference.rs @@ -417,7 +417,7 @@ fn reduce_simplex( } /// Intermediate data structure containing a partially complete calculation. -/// Sometimes you only care if the meshes are intersecting, and not about the +/// Sometimes you only care about the topology, and not about the /// exact point of intersection details. pub struct Topology{ simplex:Simplex, @@ -436,7 +436,8 @@ pub struct Details{ } pub fn point_in_mesh(mesh:&MinkowskiMesh,rel_pos:Planar64Vec3)->bool{ - minimum_difference::(mesh,rel_pos, + const ENABLE_FAST_FAIL:bool=true; + minimum_difference::(mesh,rel_pos, // expanded |_simplex|{ // local norm = direction.unit @@ -455,7 +456,8 @@ pub fn point_in_mesh(mesh:&MinkowskiMesh,rel_pos:Planar64Vec3)->bool{ ) } pub fn get_closest_fev(mesh:&MinkowskiMesh,rel_pos:Planar64Vec3)->Topology{ - minimum_difference::(mesh,rel_pos, + const ENABLE_FAST_FAIL:bool=false; + minimum_difference::(mesh,rel_pos, // expanded |_simplex|{ // NOTE: if hits is true, this if statement necessarily evaluates to true.