pub enum Shape3D {
Box {
half_size: Vec3,
},
Sphere {
radius: f32,
},
}Expand description
Local centered collision geometry, with no rotation.
Variants§
Box
Axis-aligned box with strictly positive half dimensions.
Sphere
Round shape with a strictly positive radius.
Implementations§
Trait Implementations§
impl Copy for Shape3D
impl StructuralPartialEq for Shape3D
Auto Trait Implementations§
impl Freeze for Shape3D
impl RefUnwindSafe for Shape3D
impl Send for Shape3D
impl Sync for Shape3D
impl Unpin for Shape3D
impl UnsafeUnpin for Shape3D
impl UnwindSafe for Shape3D
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