From 312b0223b6796bae41d3a49996e22e73a2373d8c Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 15 Nov 2023 22:55:50 -0800 Subject: [PATCH] inline them bad boys --- src/physics.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/physics.rs b/src/physics.rs index 3b40954..c0c3c97 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -348,6 +348,7 @@ impl Hitbox{ fn source()->Self{ Self::from_mesh_scale(PhysicsMesh::from(&crate::primitives::unit_cube()),Planar64Vec3::raw(33<<28,73<<28,33<<28)/2) } + #[inline] fn transformed_mesh(&self)->TransformedMesh{ TransformedMesh::new(&self.mesh,&self.transform,&self.normal_transform) } @@ -670,6 +671,7 @@ impl StyleModifiers{ let camera_mat=camera.simulate_move_rotation(camera.mouse.lerp(&next_mouse,time)); camera_mat*self.get_control_dir(controls) } + #[inline] fn mesh(&self)->TransformedMesh{ self.hitbox.transformed_mesh() }