pub struct Body {Show 15 fields
pub kind: Option<BodyKind>,
pub shape: Option<BodyShape>,
pub half: Option<[f32; 3]>,
pub radius: Option<f32>,
pub half_height: Option<f32>,
pub offset: Option<[f32; 3]>,
pub density: Option<f32>,
pub friction: Option<f32>,
pub restitution: Option<f32>,
pub velocity: Option<[f32; 3]>,
pub spin: Option<[f32; 3]>,
pub gravity_scale: Option<f32>,
pub damping: Option<[f32; 2]>,
pub ccd: bool,
pub layer: Option<String>,
}Fields§
§kind: Option<BodyKind>§shape: Option<BodyShape>§half: Option<[f32; 3]>§radius: Option<f32>§half_height: Option<f32>§offset: Option<[f32; 3]>§density: Option<f32>§friction: Option<f32>§restitution: Option<f32>§velocity: Option<[f32; 3]>§spin: Option<[f32; 3]>§gravity_scale: Option<f32>§damping: Option<[f32; 2]>§ccd: bool§layer: Option<String>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Body
impl<'de> Deserialize<'de> for Body
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Body
Auto Trait Implementations§
impl Freeze for Body
impl RefUnwindSafe for Body
impl Send for Body
impl Sync for Body
impl Unpin for Body
impl UnsafeUnpin for Body
impl UnwindSafe for Body
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