#[repr(C)]pub struct BodyDef {Show 13 fields
pub body_type: BodyType,
pub position: Vec2,
pub angle: f32,
pub linear_velocity: Vec2,
pub angular_velocity: f32,
pub linear_damping: f32,
pub angular_damping: f32,
pub allow_sleep: bool,
pub awake: bool,
pub fixed_rotation: bool,
pub bullet: bool,
pub active: bool,
pub gravity_scale: f32,
/* private fields */
}
Fields§
§body_type: BodyType
§position: Vec2
§angle: f32
§linear_velocity: Vec2
§angular_velocity: f32
§linear_damping: f32
§angular_damping: f32
§allow_sleep: bool
§awake: bool
§fixed_rotation: bool
§bullet: bool
§active: bool
§gravity_scale: f32
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for BodyDef
impl !Send for BodyDef
impl !Sync for BodyDef
impl Unpin for BodyDef
impl UnwindSafe for BodyDef
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