pub enum BodyShape {
Sphere {
radius: f32,
},
Box {
half_extents: [f32; 3],
},
Capsule {
radius: f32,
half_height: f32,
},
}Expand description
Simple shape for physics bodies.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BodyShape
impl RefUnwindSafe for BodyShape
impl Send for BodyShape
impl Sync for BodyShape
impl Unpin for BodyShape
impl UnsafeUnpin for BodyShape
impl UnwindSafe for BodyShape
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