pub enum CollisionShape {
Sphere {
radius: f32,
},
Plane {
normal: [f32; 3],
d: f32,
},
Aabb {
half_extents: [f32; 3],
},
Capsule {
radius: f32,
half_height: f32,
},
Cylinder {
radius: f32,
half_height: f32,
},
Cone {
radius: f32,
height: f32,
},
}Expand description
Collision shape for narrowphase detection.
Variants§
Trait Implementations§
Source§impl Clone for CollisionShape
impl Clone for CollisionShape
Source§fn clone(&self) -> CollisionShape
fn clone(&self) -> CollisionShape
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 moreSource§impl Debug for CollisionShape
impl Debug for CollisionShape
impl Copy for CollisionShape
Auto Trait Implementations§
impl Freeze for CollisionShape
impl RefUnwindSafe for CollisionShape
impl Send for CollisionShape
impl Sync for CollisionShape
impl Unpin for CollisionShape
impl UnsafeUnpin for CollisionShape
impl UnwindSafe for CollisionShape
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