pub struct MotorJoint { /* private fields */ }
Implementations§
source§impl MotorJoint
impl MotorJoint
pub fn linear_offset<'a>(&'a self) -> &'a Vec2
pub fn angular_offset(&self) -> f32
pub fn max_force(&self) -> f32
pub fn max_torque(&self) -> f32
pub fn correction_factor(&self) -> f32
pub fn set_linear_offset(&mut self, offset: &Vec2)
pub fn set_angular_offset(&mut self, offset: f32)
pub fn set_max_force(&mut self, force: f32)
pub fn set_max_torque(&mut self, torque: f32)
pub fn set_correction_factor(&mut self, factor: f32)
Trait Implementations§
source§impl Joint for MotorJoint
impl Joint for MotorJoint
fn assumed_type() -> JointType
fn handle(&self) -> JointHandle
fn get_type(&self) -> JointType
fn body_a(&self) -> BodyHandle
fn body_b(&self) -> BodyHandle
fn anchor_a(&self) -> Vec2
fn anchor_b(&self) -> Vec2
fn reaction_force(&self) -> Vec2
fn reaction_torque(&self) -> f32
fn is_active(&self) -> bool
fn is_collide_connected(&self) -> bool
fn dump(&mut self)
fn shift_origin(&mut self, origin: &Vec2)
Auto Trait Implementations§
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