From 97a1b57b65e670268de8543aa58c619020bac791 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Sat, 2 Dec 2023 02:02:51 -0800 Subject: [PATCH] TODO: relative d value --- src/face_crawler.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/face_crawler.rs b/src/face_crawler.rs index d60e11be..39cdb69d 100644 --- a/src/face_crawler.rs +++ b/src/face_crawler.rs @@ -20,6 +20,8 @@ enum Transition{ //n=face.normal d=face.dot //n.a t^2+n.v t+n.p-d==0 let (n,d)=mesh.face_nd(face_id); + //TODO: use higher precision d value? + //use the mesh transform translation instead of baking it into the d value. for t in zeroes2((n.dot(body.position)-d)*2,n.dot(body.velocity)*2,n.dot(body.acceleration)){ let t=body.time+Time::from(t); if time<=t&&t