public class MotorJointDef extends JointDef
JointDef.JointType
Modifier and Type | Field and Description |
---|---|
float |
angularOffset
The bodyB angle minus bodyA angle in radians.
|
float |
correctionFactor
Position correction factor in the range [0,1].
|
Vector2 |
linearOffset
Position of bodyB minus the position of bodyA, in bodyA's frame, in meters.
|
float |
maxForce
The maximum motor force in N.
|
float |
maxTorque
The maximum motor torque in N-m.
|
bodyA, bodyB, collideConnected, type
Constructor and Description |
---|
MotorJointDef() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(Body body1,
Body body2)
Initialize the bodies and offsets using the current transforms.
|
public final Vector2 linearOffset
public float angularOffset
public float maxForce
public float maxTorque
public float correctionFactor