Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/camera/orbit3d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,16 @@ impl OrbitCamera3d {
self.look_at(old_eye, self.at);
}
}

/// The camera's field of view angle in radians
pub fn fov(&self) -> f32 {
self.fov
}

/// Sets the camera's field of view angle in radians.
pub fn set_fov(&mut self, new_fov: f32) {
self.fov = new_fov;
}
}

impl Camera3d for OrbitCamera3d {
Expand Down