diff --git a/src/physics_worker.rs b/src/physics_worker.rs index 3c4a949..aa83bb9 100644 --- a/src/physics_worker.rs +++ b/src/physics_worker.rs @@ -1,4 +1,4 @@ -use crate::physics::{MouseState,PhysicsInputInstruction}; +use crate::physics::{MouseState,PhysicsInputInstruction, PhysicsState}; use strafesnet_common::integer::Time; use strafesnet_common::instruction::{TimedInstruction,InstructionConsumer}; use strafesnet_common::integer::{self,Planar64,Planar64Vec3,Planar64Mat3,Angle32,Ratio64,Ratio64Vec2}; @@ -24,36 +24,28 @@ pub enum Instruction{ ClearModels, //Graphics(crate::graphics_worker::Instruction), } - pub struct Speed{ pub player_vel:Planar64Vec3, - pub time:Time -} - -impl std::ops::Neg for Speed{ - type Output=Self; - fn neg(self)->Self::Output{ - Self{ - player_vel:self.player_vel, - time:self.time - } - } + pub time:Time, + pub start_time:Option