From c34ff180696f07df0acf70569c9f8d8694ef65c5 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 23 Jan 2025 07:06:35 -0800 Subject: [PATCH] minimize lints --- engine/physics/src/model.rs | 6 --- engine/physics/src/physics.rs | 9 +---- integration-testing/src/main.rs | 1 + lib/bsp_loader/src/bsp.rs | 2 +- lib/common/src/timer.rs | 2 +- lib/common/src/updatable.rs | 3 +- lib/deferred_loader/Cargo.toml | 4 +- lib/fixed_wide/src/tests.rs | 2 +- lib/rbx_loader/src/lib.rs | 2 +- lib/rbx_loader/src/mesh.rs | 1 + lib/rbx_loader/src/primitives.rs | 65 ++++++++++++++------------------ lib/rbx_loader/src/rbx.rs | 19 ++++++---- lib/snf/src/map.rs | 20 ---------- strafe-client/src/file.rs | 2 + strafe-client/src/setup.rs | 11 ------ 15 files changed, 53 insertions(+), 96 deletions(-) diff --git a/engine/physics/src/model.rs b/engine/physics/src/model.rs index 7601058..acad79a 100644 --- a/engine/physics/src/model.rs +++ b/engine/physics/src/model.rs @@ -1005,9 +1005,3 @@ fn test_is_empty_volume(){ assert!(!is_empty_volume([vec3::X.fix_3(),vec3::Y.fix_3(),vec3::Z.fix_3()].to_vec())); assert!(is_empty_volume([vec3::X.fix_3(),vec3::Y.fix_3(),vec3::Z.fix_3(),vec3::NEG_X.fix_3()].to_vec())); } - -#[test] -fn build_me_a_cube(){ - let mesh=PhysicsMesh::unit_cube(); - //println!("mesh={:?}",mesh); -} diff --git a/engine/physics/src/physics.rs b/engine/physics/src/physics.rs index 99fcb70..ebfd3a0 100644 --- a/engine/physics/src/physics.rs +++ b/engine/physics/src/physics.rs @@ -229,12 +229,6 @@ impl PhysicsModels{ .map(|model|&model.transform), } } - fn contact_model(&self,model_id:ContactModelId)->&ContactModel{ - &self.contact_models[&model_id] - } - fn intersect_model(&self,model_id:IntersectModelId)->&IntersectModel{ - &self.intersect_models[&model_id] - } fn contact_attr(&self,model_id:ContactModelId)->&gameplay_attributes::ContactAttributes{ &self.contact_attributes[&self.contact_models[&model_id].attr_id] } @@ -269,7 +263,7 @@ impl PhysicsCamera{ ); self.clamped_mouse_pos=unclamped_mouse_pos; } - pub fn simulate_move_angles(&self,mouse_delta:glam::IVec2)->glam::Vec2 { + pub fn simulate_move_angles(&self,mouse_delta:glam::IVec2)->glam::Vec2{ let a=-self.sensitivity.mul_int((self.clamped_mouse_pos+mouse_delta).as_i64vec2()); let ax=Angle32::wrap_from_i64(a.x); let ay=Angle32::clamp_from_i64(a.y) @@ -1873,7 +1867,6 @@ fn atomic_input_instruction(state:&mut PhysicsState,data:&PhysicsData,ins:TimedI #[cfg(test)] mod test{ - use crate::body::VirtualBody; use strafesnet_common::integer::{vec3::{self,int as int3},mat3}; use super::*; fn test_collision_axis_aligned(relative_body:Body,expected_collision_time:Option