# Class MouseJointDef

java.lang.Object
com.codename1.gaming.physics.box2d.dynamics.joints.JointDef
com.codename1.gaming.physics.box2d.dynamics.joints.MouseJointDef

public class MouseJointDef extends JointDef
Mouse joint definition. This requires a world target point, tuning parameters, and the time step.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `float`
  `dampingRatio`
  The damping ratio.
  `float`
  `frequencyHz`
  The response speed.
  `float`
  `maxForce`
  The maximum constraint force that can be exerted to move the candidate body.
  `final Vec2`
  `target`
  The initial world target point.

  ### Fields inherited from class JointDef

  `bodyA, bodyB, collideConnected, type, userData`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MouseJointDef()`

- ## Method Summary

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### target

    public final Vec2 target
    The initial world target point. This is assumed to coincide with the body anchor initially.

  - ### maxForce

    public float maxForce
    The maximum constraint force that can be exerted to move the candidate body. Usually you will express as some multiple of the weight (multiplier * mass * gravity).

  - ### frequencyHz

    public float frequencyHz
    The response speed.

  - ### dampingRatio

    public float dampingRatio
    The damping ratio. 0 = no damping, 1 = critical damping.

- ## Constructor Details

  - ### MouseJointDef

    public MouseJointDef()