From a5152052a8749934ec639b75277dd45e9d1a4177 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 19 Sep 2023 21:35:03 -0700 Subject: [PATCH] fix angles --- src/body.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/body.rs b/src/body.rs index 154d15d..9c1cc3a 100644 --- a/src/body.rs +++ b/src/body.rs @@ -204,7 +204,7 @@ impl Camera { } pub fn view(&self,pos:glam::Vec3)->glam::Mat4{ //f32 good enough for view matrix - glam::Mat4::from_translation(pos+self.offset) * glam::Mat4::from_euler(glam::EulerRot::YXZ, self.angles.y as f32, self.angles.x as f32, 0f32) + glam::Mat4::from_translation(pos+self.offset) * glam::Mat4::from_euler(glam::EulerRot::YXZ, self.angles.x as f32, self.angles.y as f32, 0f32) } pub fn set_fov_aspect(&mut self,fov:f32,aspect:f32){ self.fov.x=fov*aspect;