#[repr(i32)]pub enum PhysicsShapeType {
Box = 0,
Sphere = 1,
Capsule = 2,
Cylinder = 3,
ConvexHull = 4,
Mesh = 5,
}Expand description
Physics collision shape type (PHSH)
Variants§
Box = 0
Box (half-extents in shapeDimensions)
Sphere = 1
Sphere (radius in shapeDimensions.x)
Capsule = 2
Capsule (radius + height)
Cylinder = 3
Cylinder (radius + height)
ConvexHull = 4
Convex hull (vertex/half-edge data)
Mesh = 5
Triangle mesh (face/edge/normal data)
Trait Implementations§
Source§impl Clone for PhysicsShapeType
impl Clone for PhysicsShapeType
Source§fn clone(&self) -> PhysicsShapeType
fn clone(&self) -> PhysicsShapeType
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 moreimpl Copy for PhysicsShapeType
Source§impl Debug for PhysicsShapeType
impl Debug for PhysicsShapeType
impl Eq for PhysicsShapeType
Source§impl Hash for PhysicsShapeType
impl Hash for PhysicsShapeType
Source§impl PartialEq for PhysicsShapeType
impl PartialEq for PhysicsShapeType
impl StructuralPartialEq for PhysicsShapeType
Auto Trait Implementations§
impl Freeze for PhysicsShapeType
impl RefUnwindSafe for PhysicsShapeType
impl Send for PhysicsShapeType
impl Sync for PhysicsShapeType
impl Unpin for PhysicsShapeType
impl UnsafeUnpin for PhysicsShapeType
impl UnwindSafe for PhysicsShapeType
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