pub struct B2Shape {
pub m_type: B2ShapeType,
pub m_radius: f32,
}Expand description
A shape is used for collision detection. You can create a shape however you like. Shapes used for simulation in B2world are created automatically when a B2fixture is created. Shapes may encapsulate a one or more child shapes.
Fields§
§m_type: B2ShapeType§m_radius: f32Radius of a shape. For polygonal shapes this must be B2_POLYGON_RADIUS. There is no support for making rounded polygons.
Implementations§
Trait Implementations§
impl Copy for B2Shape
Auto Trait Implementations§
impl Freeze for B2Shape
impl RefUnwindSafe for B2Shape
impl Send for B2Shape
impl Sync for B2Shape
impl Unpin for B2Shape
impl UnsafeUnpin for B2Shape
impl UnwindSafe for B2Shape
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