pub struct SpawnObjectDesc { /* private fields */ }Expand description
Fluent descriptor for spawning a SceneObject3D into World3D.
Implementations§
Source§impl SpawnObjectDesc
Fluent builder helpers for SpawnObjectDesc.
impl SpawnObjectDesc
Fluent builder helpers for SpawnObjectDesc.
Sourcepub fn with_transform(self, transform: Transform3D) -> Self
pub fn with_transform(self, transform: Transform3D) -> Self
Sourcepub fn with_material(self, material: PbrMaterial) -> Self
pub fn with_material(self, material: PbrMaterial) -> Self
Sourcepub fn with_ray_trace(self, ray_trace_caster: bool) -> Self
pub fn with_ray_trace(self, ray_trace_caster: bool) -> Self
Source§impl SpawnObjectDesc
impl SpawnObjectDesc
pub fn get_name(&self) -> &String
pub fn get_mut_name(&mut self) -> &mut String
pub fn set_name(&mut self, val: String) -> &mut Self
pub fn get_mesh_id(&self) -> usize
pub fn get_mut_mesh_id(&mut self) -> &mut usize
pub fn set_mesh_id(&mut self, val: usize) -> &mut Self
pub fn get_transform(&self) -> Transform3D
pub fn get_mut_transform(&mut self) -> &mut Transform3D
pub fn set_transform(&mut self, val: Transform3D) -> &mut Self
pub fn get_material(&self) -> PbrMaterial
pub fn get_mut_material(&mut self) -> &mut PbrMaterial
pub fn set_material(&mut self, val: PbrMaterial) -> &mut Self
pub fn get_ray_trace_caster(&self) -> bool
pub fn get_mut_ray_trace_caster(&mut self) -> &mut bool
pub fn set_ray_trace_caster(&mut self, val: bool) -> &mut Self
pub fn get_spin_speed(&self) -> f32
pub fn get_mut_spin_speed(&mut self) -> &mut f32
pub fn set_spin_speed(&mut self, val: f32) -> &mut Self
Trait Implementations§
Source§impl Clone for SpawnObjectDesc
impl Clone for SpawnObjectDesc
Source§impl Debug for SpawnObjectDesc
impl Debug for SpawnObjectDesc
Source§impl PartialEq for SpawnObjectDesc
impl PartialEq for SpawnObjectDesc
impl StructuralPartialEq for SpawnObjectDesc
Auto Trait Implementations§
impl Forget for SpawnObjectDesc
impl Freeze for SpawnObjectDesc
impl Move for SpawnObjectDesc
impl RefUnwindSafe for SpawnObjectDesc
impl Send for SpawnObjectDesc
impl Sync for SpawnObjectDesc
impl Unpin for SpawnObjectDesc
impl UnsafeUnpin for SpawnObjectDesc
impl UnwindSafe for SpawnObjectDesc
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