diff --git a/Cargo.toml b/Cargo.toml index c061898..fc1016d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "three-d-asset" -version = "0.9.1" +version = "0.9.2" authors = ["Asger Nyman Christiansen "] edition = "2021" description = "Load/save functionality for 3d applications." diff --git a/src/camera.rs b/src/camera.rs index 4e7315e..0d8681f 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -708,7 +708,7 @@ impl Camera { /// pub fn set_zoom_factor(&mut self, zoom_factor: f32) { let zoom_factor = zoom_factor.max(std::f32::EPSILON); - let position = self.target + self.view_direction() / zoom_factor; + let position = self.target - self.view_direction() / zoom_factor; self.set_view(position, self.target, self.up); }