From 4da3d780573b872256fb87490de08cb4958d67da Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 25 Oct 2023 21:22:28 -0700 Subject: [PATCH] =?UTF-8?q?Face=20Crawler=E2=84=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/face_crawler.rs | 21 +++++++++++++++++++++ src/main.rs | 1 + src/sweep.rs | 8 -------- 3 files changed, 22 insertions(+), 8 deletions(-) create mode 100644 src/face_crawler.rs delete mode 100644 src/sweep.rs diff --git a/src/face_crawler.rs b/src/face_crawler.rs new file mode 100644 index 0000000..fb7e1d7 --- /dev/null +++ b/src/face_crawler.rs @@ -0,0 +1,21 @@ +struct VertexId(usize); +struct EdgeId(usize); +struct FaceId(usize); + +//Vertex <-> Edge <-> Face -> Collide +enum FEV{ + Face(FaceId), + Edge(EdgeId), + Vertex(VertexId), +} + +struct State{ + time:Time, + fev:FEV, +} + +enum Transition{ + Miss, + NextState(State), + Hit(FaceId,Time), +} diff --git a/src/main.rs b/src/main.rs index 1220d33..bfa5b43 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,6 +12,7 @@ mod settings; mod primitives; mod instruction; mod load_roblox; +mod face_crawler; mod compat_worker; mod model_graphics; mod physics_worker; diff --git a/src/sweep.rs b/src/sweep.rs deleted file mode 100644 index 428063f..0000000 --- a/src/sweep.rs +++ /dev/null @@ -1,8 +0,0 @@ - -//something that implements body + hitbox + transform can predict collision -impl crate::sweep::PredictCollision for Model { - fn predict_collision(&self,other:&Model) -> Option { - //math! - None - } -} \ No newline at end of file