pub enum BodyType2D {
Dynamic,
Static,
Kinematic,
}Expand description
Type of a 2D rigid body.
Variants§
Dynamic
Fully simulated body affected by forces and collisions.
Static
Immovable body (infinite mass, zero velocity).
Kinematic
User-controlled body that affects dynamics but is not affected by forces.
Trait Implementations§
Source§impl Clone for BodyType2D
impl Clone for BodyType2D
impl Copy for BodyType2D
Source§impl Debug for BodyType2D
impl Debug for BodyType2D
impl Eq for BodyType2D
Source§impl PartialEq for BodyType2D
impl PartialEq for BodyType2D
impl StructuralPartialEq for BodyType2D
Auto Trait Implementations§
impl Freeze for BodyType2D
impl RefUnwindSafe for BodyType2D
impl Send for BodyType2D
impl Sync for BodyType2D
impl Unpin for BodyType2D
impl UnsafeUnpin for BodyType2D
impl UnwindSafe for BodyType2D
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more