public class RevoluteJointDef extends JointDef
Modifier and Type | Field and Description |
---|---|
boolean |
enableLimit
A flag to enable joint limits.
|
boolean |
enableMotor
A flag to enable the joint motor.
|
Vec2 |
localAnchorA
The local anchor point relative to body1's origin.
|
Vec2 |
localAnchorB
The local anchor point relative to body2's origin.
|
float |
lowerAngle
The lower angle for the joint limit (radians).
|
float |
maxMotorTorque
The maximum motor torque used to achieve the desired motor speed.
|
float |
motorSpeed
The desired motor speed.
|
float |
referenceAngle
The body2 angle minus body1 angle in the reference state (radians).
|
float |
upperAngle
The upper angle for the joint limit (radians).
|
Constructor and Description |
---|
RevoluteJointDef() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(Body b1,
Body b2,
Vec2 anchor)
Initialize the bodies, anchors, and reference angle using the world
anchor.
|
public Vec2 localAnchorA
public Vec2 localAnchorB
public float referenceAngle
public boolean enableLimit
public float lowerAngle
public float upperAngle
public boolean enableMotor
public float motorSpeed
public float maxMotorTorque
Copyright © 2017. All Rights Reserved.