pub struct MoveJoint { /* private fields */ }Expand description
A type of joint that allows a physics body to move to a specific position.
Implementations§
Source§impl MoveJoint
impl MoveJoint
Sourcepub fn set_position(&mut self, val: &Vec2)
pub fn set_position(&mut self, val: &Vec2)
Sets the current position of the move joint in the game world.
Sourcepub fn get_position(&self) -> Vec2
pub fn get_position(&self) -> Vec2
Gets the current position of the move joint in the game world.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MoveJoint
impl RefUnwindSafe for MoveJoint
impl Send for MoveJoint
impl Sync for MoveJoint
impl Unpin for MoveJoint
impl UnwindSafe for MoveJoint
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