From 7a3e1e39dc8d5f3f801d4b6b88e5eaf64eb3331e Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 7 Sep 2023 15:41:15 -0700 Subject: [PATCH] WIP: lol --- src/body.rs | 5 +++++ src/event.rs | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 src/body.rs create mode 100644 src/event.rs diff --git a/src/body.rs b/src/body.rs new file mode 100644 index 00000000..ebc356db --- /dev/null +++ b/src/body.rs @@ -0,0 +1,5 @@ +pub struct Body { + position: glam::I64Vec3,//2^32 = 1 u + velocity: glam::I64Vec3,//2^32 = 1 u/s + time: i64,//nanoseconds x xxxxD! +} \ No newline at end of file diff --git a/src/event.rs b/src/event.rs new file mode 100644 index 00000000..16f9b2e5 --- /dev/null +++ b/src/event.rs @@ -0,0 +1,8 @@ +enum EventEnum { + //Body::CollisionStart + //Body::CollisionEnd +} + +pub trait EventTrait { + fn next_event() -> EventEnum; +} \ No newline at end of file