inline them bad boys
This commit is contained in:
parent
5a3013365e
commit
312b0223b6
@ -348,6 +348,7 @@ impl Hitbox{
|
|||||||
fn source()->Self{
|
fn source()->Self{
|
||||||
Self::from_mesh_scale(PhysicsMesh::from(&crate::primitives::unit_cube()),Planar64Vec3::raw(33<<28,73<<28,33<<28)/2)
|
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{
|
fn transformed_mesh(&self)->TransformedMesh{
|
||||||
TransformedMesh::new(&self.mesh,&self.transform,&self.normal_transform)
|
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));
|
let camera_mat=camera.simulate_move_rotation(camera.mouse.lerp(&next_mouse,time));
|
||||||
camera_mat*self.get_control_dir(controls)
|
camera_mat*self.get_control_dir(controls)
|
||||||
}
|
}
|
||||||
|
#[inline]
|
||||||
fn mesh(&self)->TransformedMesh{
|
fn mesh(&self)->TransformedMesh{
|
||||||
self.hitbox.transformed_mesh()
|
self.hitbox.transformed_mesh()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user