Face Crawler™

This commit is contained in:
Quaternions 2023-10-25 21:22:28 -07:00
parent eeb1561c3d
commit 4da3d78057
3 changed files with 22 additions and 8 deletions

21
src/face_crawler.rs Normal file
View File

@ -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),
}

View File

@ -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;

View File

@ -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<crate::event::EventStruct> {
//math!
None
}
}