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