From dd7e48350dfbcbeb6f2cdcaad920c6b15d098ab8 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 27 Sep 2024 12:26:16 -0700 Subject: [PATCH] TODO: fix this properly --- src/model_physics.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/model_physics.rs b/src/model_physics.rs index 6925e36..fe64ec8 100644 --- a/src/model_physics.rs +++ b/src/model_physics.rs @@ -707,7 +707,8 @@ impl MinkowskiMesh<'_>{ infinity_body.velocity=dir; infinity_body.acceleration=vec3::ZERO; //crawl in from negative infinity along a tangent line to get the closest fev - match crate::face_crawler::crawl_fev(infinity_fev,self,&infinity_body,integer::Time::MIN,infinity_body.time){ + // TODO: change crawl_fev args to delta time? Optional values? + match crate::face_crawler::crawl_fev(infinity_fev,self,&infinity_body,integer::Time::MIN/4,infinity_body.time){ crate::face_crawler::CrawlResult::Miss(fev)=>Some(fev), crate::face_crawler::CrawlResult::Hit(_,_)=>None, } @@ -767,7 +768,7 @@ impl MinkowskiMesh<'_>{ } fn infinity_in(&self,infinity_body:crate::physics::Body)->Option<(MinkowskiFace,GigaTime)>{ let infinity_fev=self.infinity_fev(-infinity_body.velocity,infinity_body.position); - match crate::face_crawler::crawl_fev(infinity_fev,self,&infinity_body,integer::Time::MIN,infinity_body.time){ + match crate::face_crawler::crawl_fev(infinity_fev,self,&infinity_body,integer::Time::MIN/4,infinity_body.time){ crate::face_crawler::CrawlResult::Miss(_)=>None, crate::face_crawler::CrawlResult::Hit(face,time)=>Some((face,time)), }