From d63a76269f8f77fa22c46bc487b3772913ba68c2 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 31 Oct 2023 21:32:00 -0700 Subject: [PATCH] ignore face --- src/face_crawler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/face_crawler.rs b/src/face_crawler.rs index 3929767..1a54506 100644 --- a/src/face_crawler.rs +++ b/src/face_crawler.rs @@ -109,7 +109,7 @@ pub fn predict_collision(mesh:&impl MeshQuery,relat } } -pub fn predict_collision_end(mesh:&impl MeshQuery,relative_body:&Body,time_limit:Time,c:&crate::physics::ContactCollision)->Option<(F,Time)>{ +pub fn predict_collision_end(mesh:&impl MeshQuery,relative_body:&Body,time_limit:Time,ignore_face_id:F)->Option<(F,Time)>{ //imagine the mesh without the collision face //no algorithm needed, there is only one state and three cases (Face,Edge,None) //determine when it passes an edge ("sliding off" case) or if it leaves the surface directly