Package org.jbox2d.dynamics.joints
Class MotorJointDef
java.lang.Object
org.jbox2d.dynamics.joints.JointDef
org.jbox2d.dynamics.joints.MotorJointDef
Motor joint definition.
- Author:
- Daniel Murphy
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatThe bodyB angle minus bodyA angle in radians.floatPosition correction factor in the range [0,1].final Vec2Position of bodyB minus the position of bodyA, in bodyA's frame, in meters.floatThe maximum motor force in N.floatThe maximum motor torque in N-m. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
linearOffset
Position of bodyB minus the position of bodyA, in bodyA's frame, in meters. -
angularOffset
public float angularOffsetThe bodyB angle minus bodyA angle in radians. -
maxForce
public float maxForceThe maximum motor force in N. -
maxTorque
public float maxTorqueThe maximum motor torque in N-m. -
correctionFactor
public float correctionFactorPosition correction factor in the range [0,1].
-
-
Constructor Details
-
MotorJointDef
public MotorJointDef()
-
-
Method Details
-
initialize
-