#[repr(C)]pub struct b2MotionLocks {
pub linearX: bool,
pub linearY: bool,
pub angularZ: bool,
}Expand description
Motion locks to restrict the body movement
Fields§
§linearX: boolPrevent translation along the x-axis
linearY: boolPrevent translation along the y-axis
angularZ: boolPrevent rotation around the z-axis
Trait Implementations§
Source§impl Clone for b2MotionLocks
impl Clone for b2MotionLocks
Source§fn clone(&self) -> b2MotionLocks
fn clone(&self) -> b2MotionLocks
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for b2MotionLocks
impl Debug for b2MotionLocks
impl Copy for b2MotionLocks
Auto Trait Implementations§
impl Freeze for b2MotionLocks
impl RefUnwindSafe for b2MotionLocks
impl Send for b2MotionLocks
impl Sync for b2MotionLocks
impl Unpin for b2MotionLocks
impl UnwindSafe for b2MotionLocks
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)