Class WheelJointDef
java.lang.Object
org.jbox2d.dynamics.joints.JointDef
org.jbox2d.dynamics.joints.WheelJointDef
Wheel joint definition. This requires defining a line of motion using an axis and an anchor
point. The definition uses local anchor points and a local axis so that the initial configuration
can violate the constraint slightly. The joint translation is zero when the local anchor points
coincide in world space. Using local anchors and a local axis helps when saving and loading a
game.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatSuspension damping ratio, one indicates critical dampingbooleanEnable/disable the joint motor.floatSuspension frequency, zero indicates no suspensionfinal Vec2The local anchor point relative to body1's origin.final Vec2The local anchor point relative to body2's origin.final Vec2The local translation axis in body1.floatThe maximum motor torque, usually in N-m.floatThe desired motor speed in radians per second. -
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
-
localAnchorA
The local anchor point relative to body1's origin. -
localAnchorB
The local anchor point relative to body2's origin. -
localAxisA
The local translation axis in body1. -
enableMotor
public boolean enableMotorEnable/disable the joint motor. -
maxMotorTorque
public float maxMotorTorqueThe maximum motor torque, usually in N-m. -
motorSpeed
public float motorSpeedThe desired motor speed in radians per second. -
frequencyHz
public float frequencyHzSuspension frequency, zero indicates no suspension -
dampingRatio
public float dampingRatioSuspension damping ratio, one indicates critical damping
-
-
Constructor Details
-
WheelJointDef
public WheelJointDef()
-
-
Method Details
-
initialize
-