pub struct BodyDef<S: PhysicsSpace> { /* private fields */ }Implementations§
Source§impl<S: PhysicsSpace> BodyDef<S>
impl<S: PhysicsSpace> BodyDef<S>
pub fn new( position: S::Point, velocity: S::Vector, collider: Collider, mass: f32, inertia: S::Inertia, space: &S, ) -> Option<Self>
pub fn fixed( position: S::Point, collider: Collider, inertia: S::Inertia, space: &S, ) -> Option<Self>
pub fn mass(&self) -> f32
pub fn collider(&self) -> &Collider
Auto Trait Implementations§
impl<S> Freeze for BodyDef<S>
impl<S> RefUnwindSafe for BodyDef<S>where
<S as Space>::Point: RefUnwindSafe,
<S as Space>::Vector: RefUnwindSafe,
<S as PhysicsSpace>::Inertia: RefUnwindSafe,
impl<S> Send for BodyDef<S>
impl<S> Sync for BodyDef<S>
impl<S> Unpin for BodyDef<S>
impl<S> UnsafeUnpin for BodyDef<S>where
<S as Space>::Point: UnsafeUnpin,
<S as Space>::Vector: UnsafeUnpin,
<S as PhysicsSpace>::Inertia: UnsafeUnpin,
impl<S> UnwindSafe for BodyDef<S>where
<S as Space>::Point: UnwindSafe,
<S as Space>::Vector: UnwindSafe,
<S as PhysicsSpace>::Inertia: UnwindSafe,
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