Removed unused variable
This commit is contained in:
parent
55faf5c4d3
commit
9848ce1170
@ -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();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user