pub struct MeshShape {
pub uuid: Uuid,
pub transform: Transform,
pub geometry: Arc<dyn Geometry + 'static>,
pub material: Arc<dyn Material + 'static>,
}
Fields
uuid: Uuid
transform: Transform
geometry: Arc<dyn Geometry + 'static>
material: Arc<dyn Material + 'static>
Implementations
Trait Implementations
sourceimpl Object for MeshShape
impl Object for MeshShape
fn translate(&self) -> &float3
fn scale(&self) -> &float3
fn rotation(&self) -> &float3
fn transform(&self) -> &float4x4
fn transform_inverse(&self) -> &float4x4
fn set_translate(&mut self, pos: float3)
fn set_scale(&mut self, sz: float3)
fn set_rotation(&mut self, rot: float3)
fn up(&self) -> float3
fn right(&self) -> float3
fn forward(&self) -> float3
fn set_up(&mut self, speed: float3)
fn set_right(&mut self, speed: float3)
fn set_forward(&mut self, speed: float3)
sourceimpl UpdateEvent for MeshShape
impl UpdateEvent for MeshShape
Auto Trait Implementations
impl !RefUnwindSafe for MeshShape
impl !Send for MeshShape
impl !Sync for MeshShape
impl Unpin for MeshShape
impl !UnwindSafe for MeshShape
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
Sets
value
as a parameter of self
.