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