pub struct ViewportEntity {Show 16 fields
pub id: EntityId,
pub name: String,
pub kind: EntityKind,
pub position: Vec3,
pub rotation: Vec3,
pub scale: Vec3,
pub visible: bool,
pub locked: bool,
pub parent: Option<EntityId>,
pub children: Vec<EntityId>,
pub sdf_graph_id: Option<u32>,
pub material_tag: Option<String>,
pub cast_shadows: bool,
pub receive_shadows: bool,
pub static_batching: bool,
pub layer_mask: u32,
}Fields§
§id: EntityId§name: String§kind: EntityKind§position: Vec3§rotation: Vec3§scale: Vec3§visible: bool§locked: bool§parent: Option<EntityId>§children: Vec<EntityId>§sdf_graph_id: Option<u32>§material_tag: Option<String>§cast_shadows: bool§receive_shadows: bool§static_batching: bool§layer_mask: u32Implementations§
Source§impl ViewportEntity
impl ViewportEntity
pub fn new(id: EntityId, name: String, kind: EntityKind) -> Self
pub fn model_matrix(&self) -> Mat4
pub fn world_bounds_radius(&self) -> f32
Trait Implementations§
Source§impl Clone for ViewportEntity
impl Clone for ViewportEntity
Auto Trait Implementations§
impl Freeze for ViewportEntity
impl RefUnwindSafe for ViewportEntity
impl Send for ViewportEntity
impl Sync for ViewportEntity
impl Unpin for ViewportEntity
impl UnsafeUnpin for ViewportEntity
impl UnwindSafe for ViewportEntity
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.