A mouse joint is used to make a point on a body track a specified world point. This a soft constraint with a maximum force. This allows the constraint to stretch and without applying huge forces. Note: this joint is not fully documented as it is intended primarily for the testbed. See that for more instructions.
Get the anchor point on bodyA in world coordinates.
Body A anchor.
Get the anchor point on bodyB in world coordinates.
Body B anchor.
Get the first body attached to this joint.
Body A.
Get the second body attached to this joint.
Body B.
Gets the damping ratio.
number
Damping ratio.
Gets the frequency.
number
Frequency.
Gets the max force.
number
Max force.
Get the next joint the world joint list.
Next joint.
Get the reaction force on body2 at the joint anchor in N.
Reaction force in N.
Get the reaction torque on body 2 in N.
number
Reaction torque in N.
Gets the target.
Target.
Get the type of the concrete joint.
number
Joint type.
Get the user data pointer.
any
User data. Cast to your data type.
Short-cut function to determine if either body is inactive.
boolean
True if active, otherwise false.
Sets the damping ratio.
New damping ratio.
Sets the frequency.
New frequency (hertz).
Sets the max force.
New max force.
Use this to update the target point.
New target.
Set the user data pointer.
Your custom data.