From fe14d5e0fac56b7179245478390db611aae5a896 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 18 Sep 2023 18:31:04 -0700 Subject: [PATCH] worthless opti --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 1d757922..30a07581 100644 --- a/src/main.rs +++ b/src/main.rs @@ -632,7 +632,7 @@ impl strafe_client::framework::Example for Skybox { queue: &wgpu::Queue, _spawner: &strafe_client::framework::Spawner, ) { - let camera_mat=glam::Mat3::from_euler(glam::EulerRot::YXZ,self.camera.yaw,0f32,0f32); + let camera_mat=glam::Mat3::from_rotation_y(self.camera.yaw); let control_dir=camera_mat*get_control_dir(self.camera.controls&(CONTROL_MOVELEFT|CONTROL_MOVERIGHT|CONTROL_MOVEFORWARD|CONTROL_MOVEBACK)).normalize_or_zero(); let time=self.start_time.elapsed().as_nanos() as i64;