strafe-client/src/face_crawler.rs

22 lines
272 B
Rust
Raw Normal View History

2023-10-26 04:22:28 +00:00
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),
}