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

public Class WeldJointDef

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

Field Summary

Modifier and TypeField and Description
public float
dampingRatio

The damping ratio.

public float
frequencyHz

The mass-spring-damper frequency in Hertz.

public final Vector2
localAnchorA

The local anchor point relative to body1's origin.

public final Vector2
localAnchorB

The local anchor point relative to body2's origin.

public float
referenceAngle

The body2 angle minus body1 angle in the reference state (radians).

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
initialize(Body body1, Body body2, Vector2 anchor)

Initialize the bodies, anchors, and reference angle using a world anchor point.

Field Detail

dampingRatioback to summary
public float dampingRatio

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

frequencyHzback to summary
public float frequencyHz

The mass-spring-damper frequency in Hertz. Rotation only. Disable softness with a value of 0.

localAnchorAback to summary
public final Vector2 localAnchorA

The local anchor point relative to body1's origin.

localAnchorBback to summary
public final Vector2 localAnchorB

The local anchor point relative to body2's origin.

referenceAngleback to summary
public float referenceAngle

The body2 angle minus body1 angle in the reference state (radians).

Constructor Detail

WeldJointDefback to summary
public WeldJointDef()

Method Detail

initializeback to summary
public void initialize(Body body1, Body body2, Vector2 anchor)

Initialize the bodies, anchors, and reference angle using a world anchor point.