pub struct LodSwitchView {
pub reference_fov_y: f32,
}Expand description
The view the distances of every LodSwitch are stated for (core.lod_switch_view, a world resource): a camera
of vertical field of view reference_fov_y measures them as they are, a narrower one as nearer. A world with level
switches has it.
Fields§
§reference_fov_y: f32Radians, more than 0 and less than pi.
Implementations§
Trait Implementations§
Source§impl Clone for LodSwitchView
impl Clone for LodSwitchView
impl Copy for LodSwitchView
Source§impl Debug for LodSwitchView
impl Debug for LodSwitchView
Source§impl PartialEq for LodSwitchView
impl PartialEq for LodSwitchView
Source§impl Resource for LodSwitchView
impl Resource for LodSwitchView
const NAME: &'static str = "core.lod_switch_view"
const VERSION: u32 = 1
Source§fn references(&self, _out: &mut Vec<Entity>)
fn references(&self, _out: &mut Vec<Entity>)
The entities this resource refers to, appended to
out. A resource holding entity references must declare
every one of them and implement Resource::retain_references.Source§fn retain_references(&mut self, _keep: &dyn Fn(Entity) -> bool)
fn retain_references(&mut self, _keep: &dyn Fn(Entity) -> bool)
Forget every reference to an entity
keep refuses (set it to “none”). The world calls it whenever entities
leave it (World::despawn, World::retain, World::move_components) and on the copy a
World::subset or World::split_off part gets, so a resource never refers to an entity its world lacks.Source§impl Serialize for LodSwitchView
impl Serialize for LodSwitchView
impl StructuralPartialEq for LodSwitchView
Auto Trait Implementations§
impl Forget for LodSwitchView
impl Freeze for LodSwitchView
impl RefUnwindSafe for LodSwitchView
impl Send for LodSwitchView
impl Sync for LodSwitchView
impl Unpin for LodSwitchView
impl UnsafeUnpin for LodSwitchView
impl UnwindSafe for LodSwitchView
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more