forked from StrafesNET/strafe-client
Face Crawler™
This commit is contained in:
parent
eeb1561c3d
commit
4da3d78057
21
src/face_crawler.rs
Normal file
21
src/face_crawler.rs
Normal 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),
|
||||||
|
}
|
@ -12,6 +12,7 @@ mod settings;
|
|||||||
mod primitives;
|
mod primitives;
|
||||||
mod instruction;
|
mod instruction;
|
||||||
mod load_roblox;
|
mod load_roblox;
|
||||||
|
mod face_crawler;
|
||||||
mod compat_worker;
|
mod compat_worker;
|
||||||
mod model_graphics;
|
mod model_graphics;
|
||||||
mod physics_worker;
|
mod physics_worker;
|
||||||
|
@ -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
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user