From 7be7d2c0df440ef82f4ee59815452afe151078c9 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 18 Oct 2023 18:20:15 -0700 Subject: [PATCH] literally into_worker --- src/physics.rs | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/src/physics.rs b/src/physics.rs index d7f0bc0..347d280 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -57,32 +57,6 @@ pub struct Body { time:Time,//nanoseconds x xxxxD! } - -/* -enum InputInstruction { -} -struct InputState { -} -impl InputState { - pub fn get_control(&self,control:u32) -> bool { - self.controls&control!=0 - } -} -impl crate::instruction::InstructionEmitter for InputState{ - fn next_instruction(&self, time_limit:crate::body::Time) -> Option> { - //this is polled by PhysicsState for actions like Jump - //no, it has to be the other way around. physics is run up until the jump instruction, and then the jump instruction is pushed. - self.queue.get(0) - } -} -impl crate::instruction::InstructionConsumer for InputState{ - fn process_instruction(&mut self,ins:TimedInstruction){ - //add to queue - self.queue.push(ins); - } -} -*/ - //hey dumbass just use a delta #[derive(Clone,Debug)] pub struct MouseState {