pub enum ColliderShape {
Cuboid {
half_extents: [f32; 3],
},
Ball {
radius: f32,
},
Capsule {
half_height: f32,
radius: f32,
},
}Expand description
A collision shape, in the body’s local space.
Variants§
Cuboid
Box with the given half-extents along x, y, z.
Ball
Sphere of the given radius.
Capsule
Y-axis capsule: a cylinder of 2 * half_height capped by hemispheres.
Trait Implementations§
Source§impl Clone for ColliderShape
impl Clone for ColliderShape
Source§fn clone(&self) -> ColliderShape
fn clone(&self) -> ColliderShape
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 ColliderShape
Source§impl Debug for ColliderShape
impl Debug for ColliderShape
Source§impl PartialEq for ColliderShape
impl PartialEq for ColliderShape
impl StructuralPartialEq for ColliderShape
Auto Trait Implementations§
impl Freeze for ColliderShape
impl RefUnwindSafe for ColliderShape
impl Send for ColliderShape
impl Sync for ColliderShape
impl Unpin for ColliderShape
impl UnsafeUnpin for ColliderShape
impl UnwindSafe for ColliderShape
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