From 5e6ebdf12574bd4f3676e6d4fa8762e0f737f328 Mon Sep 17 00:00:00 2001 From: Royiex <99565766+Royiex@users.noreply.github.com> Date: Mon, 12 Feb 2024 19:14:15 +0100 Subject: [PATCH] Fixes --- src/physics_worker.rs | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) 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