inline them bad boys

This commit is contained in:
Quaternions 2023-11-15 22:55:50 -08:00
parent 5a3013365e
commit 312b0223b6

View File

@ -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()
}