pub struct Camera { /* private fields */ }Expand description
CAM_ — Camera (v2–v5, 144–264 bytes)
Bone-attached camera with animated FOV, clip planes, shadow clip distance, depth-of-field parameters, and version-dependent bokeh settings.
Implementations§
Source§impl Camera
impl Camera
Sourcepub fn bone_index(&self) -> u32
pub fn bone_index(&self) -> u32
Index into BONE array
pub fn set_bone_index(&mut self, value: u32)
pub fn set_name(&mut self, value: &str)
Sourcepub fn field_of_view(&self) -> Ref<'_, AnimRefF32>
pub fn field_of_view(&self) -> Ref<'_, AnimRefF32>
Animated FOV in radians (v2+) Borrows the field in place — no copy, no allocation.
pub fn field_of_view_mut(&mut self) -> RefMut<'_, AnimRefF32>
Sourcepub fn use_vertical_fov(&self) -> u32
pub fn use_vertical_fov(&self) -> u32
Use vertical FOV (0 or 1, v2+)
pub fn set_use_vertical_fov(&mut self, value: u32)
pub fn set_dof_type(&mut self, value: u32)
Sourcepub fn far_clip(&self) -> Ref<'_, AnimRefF32>
pub fn far_clip(&self) -> Ref<'_, AnimRefF32>
Animated far clip plane (v3+) Borrows the field in place — no copy, no allocation.
pub fn far_clip_mut(&mut self) -> RefMut<'_, AnimRefF32>
Sourcepub fn near_clip(&self) -> Ref<'_, AnimRefF32>
pub fn near_clip(&self) -> Ref<'_, AnimRefF32>
Animated near clip plane (v3+) Borrows the field in place — no copy, no allocation.
pub fn near_clip_mut(&mut self) -> RefMut<'_, AnimRefF32>
Sourcepub fn shadow_clip_distance(&self) -> Ref<'_, AnimRefF32>
pub fn shadow_clip_distance(&self) -> Ref<'_, AnimRefF32>
Animated shadow clip distance (v2+) Borrows the field in place — no copy, no allocation.
pub fn shadow_clip_distance_mut(&mut self) -> RefMut<'_, AnimRefF32>
Sourcepub fn focus_distance(&self) -> Ref<'_, AnimRefF32>
pub fn focus_distance(&self) -> Ref<'_, AnimRefF32>
Animated DOF focal point distance (v2+) Borrows the field in place — no copy, no allocation.
pub fn focus_distance_mut(&mut self) -> RefMut<'_, AnimRefF32>
Sourcepub fn far_focus_range(&self) -> Ref<'_, AnimRefF32>
pub fn far_focus_range(&self) -> Ref<'_, AnimRefF32>
Animated DOF far focus range (v2+) Borrows the field in place — no copy, no allocation.
pub fn far_focus_range_mut(&mut self) -> RefMut<'_, AnimRefF32>
Sourcepub fn near_focus_range(&self) -> Ref<'_, AnimRefF32>
pub fn near_focus_range(&self) -> Ref<'_, AnimRefF32>
Animated DOF near focus range (v2+) Borrows the field in place — no copy, no allocation.
pub fn near_focus_range_mut(&mut self) -> RefMut<'_, AnimRefF32>
Sourcepub fn near_falloff_start(&self) -> Ref<'_, AnimRefF32>
pub fn near_falloff_start(&self) -> Ref<'_, AnimRefF32>
Animated near falloff start (v4+) Borrows the field in place — no copy, no allocation.
pub fn near_falloff_start_mut(&mut self) -> RefMut<'_, AnimRefF32>
Sourcepub fn near_falloff_end(&self) -> Ref<'_, AnimRefF32>
pub fn near_falloff_end(&self) -> Ref<'_, AnimRefF32>
Animated near falloff end (v4+) Borrows the field in place — no copy, no allocation.
pub fn near_falloff_end_mut(&mut self) -> RefMut<'_, AnimRefF32>
Sourcepub fn dof_amount(&self) -> Ref<'_, AnimRefF32>
pub fn dof_amount(&self) -> Ref<'_, AnimRefF32>
Animated DOF strength (v2+) Borrows the field in place — no copy, no allocation.
pub fn dof_amount_mut(&mut self) -> RefMut<'_, AnimRefF32>
Sourcepub fn bokeh_f_stop(&self) -> Ref<'_, AnimRefF32>
pub fn bokeh_f_stop(&self) -> Ref<'_, AnimRefF32>
Animated bokeh f-stop (v5+) Borrows the field in place — no copy, no allocation.
pub fn bokeh_f_stop_mut(&mut self) -> RefMut<'_, AnimRefF32>
Sourcepub fn bokeh_max_co_c_diameter(&self) -> Ref<'_, AnimRefF32>
pub fn bokeh_max_co_c_diameter(&self) -> Ref<'_, AnimRefF32>
Animated bokeh max CoC diameter (v5+) Borrows the field in place — no copy, no allocation.