Package org.jbox2d.dynamics.joints
Class WeldJointDef
java.lang.Object
org.jbox2d.dynamics.joints.JointDef
org.jbox2d.dynamics.joints.WeldJointDef
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloat
The damping ratio.float
The mass-spring-damper frequency in Hertz.final Vec2
The local anchor point relative to body1's origin.final Vec2
The local anchor point relative to body2's origin.float
The body2 angle minus body1 angle in the reference state (radians). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(Body bA, Body bB, Vec2 anchor) Initialize the bodies, anchors, and reference angle using a world anchor point.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
localAnchorA
The local anchor point relative to body1's origin. -
localAnchorB
The local anchor point relative to body2's origin. -
referenceAngle
public float referenceAngleThe body2 angle minus body1 angle in the reference state (radians). -
frequencyHz
public float frequencyHzThe mass-spring-damper frequency in Hertz. Rotation only. Disable softness with a value of 0. -
dampingRatio
public float dampingRatioThe damping ratio. 0 = no damping, 1 = critical damping.
-
-
Constructor Details
-
WeldJointDef
public WeldJointDef()
-
-
Method Details
-
initialize
Initialize the bodies, anchors, and reference angle using a world anchor point.- Parameters:
bA
-bB
-anchor
-
-