pub struct ExtractedBody {
pub object_id: u64,
pub position: [f32; 3],
pub shape: BodyShape,
pub mass: f32,
pub restitution: f32,
pub friction: f32,
pub is_static: bool,
pub tags: Vec<String>,
}Expand description
Physics body extracted from a scene object.
Fields§
§object_id: u64§position: [f32; 3]§shape: BodyShape§mass: f32§restitution: f32§friction: f32§is_static: boolTrait Implementations§
Source§impl Clone for ExtractedBody
impl Clone for ExtractedBody
Source§fn clone(&self) -> ExtractedBody
fn clone(&self) -> ExtractedBody
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExtractedBody
impl RefUnwindSafe for ExtractedBody
impl Send for ExtractedBody
impl Sync for ExtractedBody
impl Unpin for ExtractedBody
impl UnsafeUnpin for ExtractedBody
impl UnwindSafe for ExtractedBody
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