pub struct MotorJoint { /* private fields */ }Expand description
A joint that applies a rotational or linear force to a physics body.
Implementations§
Source§impl MotorJoint
impl MotorJoint
Sourcepub fn set_enabled(&mut self, val: bool)
pub fn set_enabled(&mut self, val: bool)
Sets whether or not the motor joint is enabled.
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Gets whether or not the motor joint is enabled.
Trait Implementations§
Source§impl Clone for MotorJoint
impl Clone for MotorJoint
Source§fn clone(&self) -> MotorJoint
fn clone(&self) -> MotorJoint
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Drop for MotorJoint
impl Drop for MotorJoint
Source§impl IJoint for MotorJoint
impl IJoint for MotorJoint
Auto Trait Implementations§
impl Freeze for MotorJoint
impl RefUnwindSafe for MotorJoint
impl Send for MotorJoint
impl Sync for MotorJoint
impl Unpin for MotorJoint
impl UnwindSafe for MotorJoint
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