Removed unused variable

This commit is contained in:
Verox001 2025-05-08 15:46:51 +02:00
parent 55faf5c4d3
commit 9848ce1170

View File

@ -36,7 +36,6 @@ impl Camera {
pub fn rotate_yaw_pitch(&mut self, yaw: f32, pitch: f32) { pub fn rotate_yaw_pitch(&mut self, yaw: f32, pitch: f32) {
let offset = self.eye - self.target; let offset = self.eye - self.target;
let distance = offset.magnitude();
let yaw_q = Quaternion::from_axis_angle(Vector3::unit_y(), Rad(yaw.to_radians())); let yaw_q = Quaternion::from_axis_angle(Vector3::unit_y(), Rad(yaw.to_radians()));
let right = offset.cross(self.up).normalize(); let right = offset.cross(self.up).normalize();