pub struct ActorStreamingProxy {
pub actor_id: u32,
pub world_position: Vec3,
pub world_rotation: Quat,
pub world_scale: Vec3,
pub bounds: ChunkBounds,
pub streaming_distance: f32,
pub lod_level: LodLevel,
pub is_loaded: bool,
pub data_layer_mask: u32,
pub hlod_cluster_id: Option<u32>,
pub last_frame_visible: u64,
pub importance: f32,
}Fields§
§actor_id: u32§world_position: Vec3§world_rotation: Quat§world_scale: Vec3§bounds: ChunkBounds§streaming_distance: f32§lod_level: LodLevel§is_loaded: bool§data_layer_mask: u32§hlod_cluster_id: Option<u32>§last_frame_visible: u64§importance: f32Implementations§
Source§impl ActorStreamingProxy
impl ActorStreamingProxy
pub fn new(actor_id: u32, position: Vec3, bounds: ChunkBounds) -> Self
pub fn world_transform(&self) -> Mat4
pub fn distance_to_viewer(&self, viewer_pos: Vec3) -> f32
pub fn should_load(&self, viewer_pos: Vec3) -> bool
pub fn desired_lod( &self, viewer_pos: Vec3, config: &StreamingConfig, ) -> LodLevel
pub fn screen_size_at_distance( &self, viewer_pos: Vec3, camera: &StreamingCamera, screen_height: f32, ) -> f32
pub fn is_in_data_layer(&self, layer_mask: u32) -> bool
pub fn update_transform(&mut self, pos: Vec3, rot: Quat, scale: Vec3)
Trait Implementations§
Source§impl Clone for ActorStreamingProxy
impl Clone for ActorStreamingProxy
Auto Trait Implementations§
impl Freeze for ActorStreamingProxy
impl RefUnwindSafe for ActorStreamingProxy
impl Send for ActorStreamingProxy
impl Sync for ActorStreamingProxy
impl Unpin for ActorStreamingProxy
impl UnsafeUnpin for ActorStreamingProxy
impl UnwindSafe for ActorStreamingProxy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.