APIdia Launch Partner
Top Description Fields Constructors
com.badlogic.gdx.physics.box2d.joints

public Class MouseJointDef

extends JointDef
Class Inheritance
Imports
com.badlogic.gdx.math.Vector2, com.badlogic.gdx.physics.box2d.JointDef

Mouse joint definition. This requires a world target point, tuning parameters, and the time step.

Field Summary

Modifier and TypeField and Description
public float
dampingRatio

The damping ratio.

public float
frequencyHz

The response speed.

public float
maxForce

The maximum constraint force that can be exerted to move the candidate body.

public final Vector2
target

The initial world target point.

Inherited from com.badlogic.gdx.physics.box2d.JointDef:
bodyAbodyBcollideConnectedtype

Constructor Summary

AccessConstructor and Description
public

Field Detail

dampingRatioback to summary
public float dampingRatio

The damping ratio. 0 = no damping, 1 = critical damping.

frequencyHzback to summary
public float frequencyHz

The response speed.

maxForceback to summary
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).

targetback to summary
public final Vector2 target

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

Constructor Detail

MouseJointDefback to summary
public MouseJointDef()