pub enum PhysShapeData {
Sphere {
radius: f32,
offset: [f32; 3],
},
Box {
dimensions: [f32; 3],
offset: [f32; 3],
},
Hull {
vertices: Vec<[f32; 3]>,
},
TriMesh {
vertices: Vec<[f32; 3]>,
indices: Vec<u32>,
},
}Expand description
Shape data parsed from a plPXPhysical.
Variants§
Trait Implementations§
Source§impl Clone for PhysShapeData
impl Clone for PhysShapeData
Source§fn clone(&self) -> PhysShapeData
fn clone(&self) -> PhysShapeData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PhysShapeData
impl RefUnwindSafe for PhysShapeData
impl Send for PhysShapeData
impl Sync for PhysShapeData
impl Unpin for PhysShapeData
impl UnsafeUnpin for PhysShapeData
impl UnwindSafe for PhysShapeData
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