pub enum BodyType {
Static = 0,
Kinematic = 1,
Dynamic = 2,
}Expand description
The body simulation type. Each body is one of these three types. (b2BodyType)
Variants§
Static = 0
zero mass, zero velocity, may be manually moved
Kinematic = 1
zero mass, velocity set by user, moved by solver
Dynamic = 2
positive mass, velocity determined by forces, moved by solver
Trait Implementations§
impl Copy for BodyType
impl Eq for BodyType
impl StructuralPartialEq for BodyType
Auto Trait Implementations§
impl Freeze for BodyType
impl RefUnwindSafe for BodyType
impl Send for BodyType
impl Sync for BodyType
impl Unpin for BodyType
impl UnsafeUnpin for BodyType
impl UnwindSafe for BodyType
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