Package org.jbox2d.dynamics.joints
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 TypeFieldDescriptionfloat
Suspension damping ratio, one indicates critical dampingboolean
Enable/disable the joint motor.float
Suspension frequency, zero indicates no suspensionfinal Vec2
The local anchor point relative to body1's origin.final Vec2
The local anchor point relative to body2's origin.final Vec2
The local translation axis in body1.float
The maximum motor torque, usually in N-m.float
The 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
-