#[repr(u32)]pub enum b2BodyType {
b2_staticBody = 0,
b2_kinematicBody = 1,
b2_dynamicBody = 2,
}Expand description
The body type. static: zero mass, zero velocity, may be manually moved kinematic: zero mass, non-zero velocity set by user, moved by solver dynamic: positive mass, non-zero velocity determined by forces, moved by solver
Variants§
Trait Implementations§
Source§impl Clone for b2BodyType
impl Clone for b2BodyType
Source§fn clone(&self) -> b2BodyType
fn clone(&self) -> b2BodyType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Eq for b2BodyType
Source§impl ExternType for b2BodyType
impl ExternType for b2BodyType
Source§impl Hash for b2BodyType
impl Hash for b2BodyType
Source§impl PartialEq for b2BodyType
impl PartialEq for b2BodyType
Source§fn eq(&self, other: &b2BodyType) -> bool
fn eq(&self, other: &b2BodyType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for b2BodyType
impl UniquePtrTarget for b2BodyType
impl VectorElement for b2BodyType
impl WeakPtrTarget for b2BodyType
Auto Trait Implementations§
impl Freeze for b2BodyType
impl RefUnwindSafe for b2BodyType
impl Send for b2BodyType
impl Sync for b2BodyType
impl Unpin for b2BodyType
impl UnsafeUnpin for b2BodyType
impl UnwindSafe for b2BodyType
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