From e1fde9b507c9b95d1743ba7814e2079f3e645c16 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 26 Oct 2023 20:52:38 -0700 Subject: [PATCH] there is another --- src/face_crawler.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/face_crawler.rs b/src/face_crawler.rs index e619af6..34ed8ca 100644 --- a/src/face_crawler.rs +++ b/src/face_crawler.rs @@ -108,3 +108,11 @@ pub fn predict_collision(mesh:&VirtualMesh,relative_body:&Body,time_limit:Time)- } } } + +pub fn predict_collision_end(mesh:&VirtualMesh,relative_body:&Body,time_limit:Time,c:&crate::physics::RelativeCollision)->Option<(FaceId,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 + //the state can be constructed from the RelativeCollision directly + None +}