#[repr(C)]pub struct BodyDescriptorRecord {Show 17 fields
pub inverse_mass: f32,
pub linear_damping: f32,
pub angular_damping: f32,
pub gravity_scale: f32,
pub sleep_velocity: f32,
pub sleep_angular_velocity: f32,
pub flags: u32,
pub _pad0: u32,
pub collision_group: u32,
pub collision_mask: u32,
pub _pad1: u32,
pub _pad4: u32,
pub com: [f32; 3],
pub _pad2: f32,
pub inertia: [f32; 6],
pub inverse_inertia: [f32; 6],
pub _pad3: [f32; 4],
}Fields§
§inverse_mass: f32§linear_damping: f32§angular_damping: f32§gravity_scale: f32§sleep_velocity: f32§sleep_angular_velocity: f32§flags: u32§_pad0: u32§collision_group: u32§collision_mask: u32§_pad1: u32§_pad4: u32§com: [f32; 3]§_pad2: f32§inertia: [f32; 6]§inverse_inertia: [f32; 6]§_pad3: [f32; 4]Implementations§
Source§impl BodyDescriptorRecord
impl BodyDescriptorRecord
pub fn build( desc: &BodyDesc, mass: MassProperties, config: &PhysicsConfig, ) -> Self
Trait Implementations§
Source§impl Clone for BodyDescriptorRecord
impl Clone for BodyDescriptorRecord
Source§fn clone(&self) -> BodyDescriptorRecord
fn clone(&self) -> BodyDescriptorRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BodyDescriptorRecord
Source§impl Debug for BodyDescriptorRecord
impl Debug for BodyDescriptorRecord
Source§impl PartialEq for BodyDescriptorRecord
impl PartialEq for BodyDescriptorRecord
impl Pod for BodyDescriptorRecord
Source§impl StreamRecord for BodyDescriptorRecord
impl StreamRecord for BodyDescriptorRecord
impl StructuralPartialEq for BodyDescriptorRecord
Auto Trait Implementations§
impl Freeze for BodyDescriptorRecord
impl RefUnwindSafe for BodyDescriptorRecord
impl Send for BodyDescriptorRecord
impl Sync for BodyDescriptorRecord
impl Unpin for BodyDescriptorRecord
impl UnsafeUnpin for BodyDescriptorRecord
impl UnwindSafe for BodyDescriptorRecord
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.