pub enum ShapeGeometry {
Capsule(Capsule),
Sphere(Sphere),
Hull(Rc<HullData>),
Mesh {
data: MeshData,
scale: Vec3,
},
HeightField(HeightFieldData),
Compound(CompoundData),
}Expand description
Concrete shape geometry. Maps to C’s type tag + anonymous union.
Variants§
Capsule(Capsule)
Sphere(Sphere)
Hull(Rc<HullData>)
Shared hull from the world hull database. (C: const b3HullData* hull)
Mesh
Mesh data plus per-instance scale (C: b3Mesh { data*, scale }).
HeightField(HeightFieldData)
Compound(CompoundData)
Implementations§
Source§impl ShapeGeometry
impl ShapeGeometry
Sourcepub fn shape_type(&self) -> ShapeType
pub fn shape_type(&self) -> ShapeType
The shape type tag. (C: shape->type)
Trait Implementations§
Source§impl Clone for ShapeGeometry
impl Clone for ShapeGeometry
Source§fn clone(&self) -> ShapeGeometry
fn clone(&self) -> ShapeGeometry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShapeGeometry
impl Debug for ShapeGeometry
Auto Trait Implementations§
impl !Send for ShapeGeometry
impl !Sync for ShapeGeometry
impl Freeze for ShapeGeometry
impl RefUnwindSafe for ShapeGeometry
impl Unpin for ShapeGeometry
impl UnsafeUnpin for ShapeGeometry
impl UnwindSafe for ShapeGeometry
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