pub struct MotorJointDef {
pub body_a: BodyHandle,
pub body_b: BodyHandle,
pub collide_connected: bool,
pub linear_offset: Vec2,
pub angular_offset: f32,
pub max_force: f32,
pub max_torque: f32,
pub correction_factor: f32,
}
Fields§
§body_a: BodyHandle
§body_b: BodyHandle
§collide_connected: bool
§linear_offset: Vec2
§angular_offset: f32
§max_force: f32
§max_torque: f32
§correction_factor: f32
Implementations§
source§impl MotorJointDef
impl MotorJointDef
pub fn new(body_a: BodyHandle, body_b: BodyHandle) -> MotorJointDef
pub fn init<U: UserDataTypes>( &mut self, world: &World<U>, body_a: BodyHandle, body_b: BodyHandle )
pub fn try_init<U: UserDataTypes>( &mut self, world: &World<U>, body_a: BodyHandle, body_b: BodyHandle ) -> Option<()>
Trait Implementations§
source§impl JointDef for MotorJointDef
impl JointDef for MotorJointDef
fn joint_type() -> JointTypewhere
Self: Sized,
Auto Trait Implementations§
impl RefUnwindSafe for MotorJointDef
impl Send for MotorJointDef
impl Sync for MotorJointDef
impl Unpin for MotorJointDef
impl UnwindSafe for MotorJointDef
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