pub struct MouseJointDef {
pub body_a: BodyHandle,
pub body_b: BodyHandle,
pub collide_connected: bool,
pub target: Vec2,
pub max_force: f32,
pub frequency: f32,
pub damping_ratio: f32,
}
Fields§
§body_a: BodyHandle
§body_b: BodyHandle
§collide_connected: bool
§target: Vec2
§max_force: f32
§frequency: f32
§damping_ratio: f32
Implementations§
source§impl MouseJointDef
impl MouseJointDef
pub fn new(body_a: BodyHandle, body_b: BodyHandle) -> MouseJointDef
Trait Implementations§
source§impl JointDef for MouseJointDef
impl JointDef for MouseJointDef
fn joint_type() -> JointTypewhere
Self: Sized,
Auto Trait Implementations§
impl RefUnwindSafe for MouseJointDef
impl Send for MouseJointDef
impl Sync for MouseJointDef
impl Unpin for MouseJointDef
impl UnwindSafe for MouseJointDef
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