Package org.jbox2d.dynamics.joints
Class MouseJointDef
java.lang.Object
org.jbox2d.dynamics.joints.JointDef
org.jbox2d.dynamics.joints.MouseJointDef
Mouse joint definition. This requires a world target point, tuning parameters, and the time step.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloat
The damping ratio.float
The response speed.float
The maximum constraint force that can be exerted to move the candidate body.final Vec2
The initial world target point. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
target
The initial world target point. This is assumed to coincide with the body anchor initially. -
maxForce
public float maxForceThe 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 frequencyHzThe response speed. -
dampingRatio
public float dampingRatioThe damping ratio. 0 = no damping, 1 = critical damping.
-
-
Constructor Details
-
MouseJointDef
public MouseJointDef()
-