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