Class MotorJointDef

java.lang.Object
org.jbox2d.dynamics.joints.JointDef
org.jbox2d.dynamics.joints.MotorJointDef

public class MotorJointDef extends JointDef
Motor joint definition.
Author:
Daniel Murphy
  • Field Details

    • linearOffset

      public final Vec2 linearOffset
      Position of bodyB minus the position of bodyA, in bodyA's frame, in meters.
    • angularOffset

      public float angularOffset
      The bodyB angle minus bodyA angle in radians.
    • maxForce

      public float maxForce
      The maximum motor force in N.
    • maxTorque

      public float maxTorque
      The maximum motor torque in N-m.
    • correctionFactor

      public float correctionFactor
      Position correction factor in the range [0,1].
  • Constructor Details

    • MotorJointDef

      public MotorJointDef()
  • Method Details

    • initialize

      public void initialize(Body bA, Body bB)