|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbox2d.dynamics.joints.JointDef
org.jbox2d.dynamics.joints.WheelJointDef
public class 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 | |
|---|---|
float |
dampingRatio
Suspension damping ratio, one indicates critical damping |
boolean |
enableMotor
Enable/disable the joint motor. |
float |
frequencyHz
Suspension frequency, zero indicates no suspension |
Vec2 |
localAnchorA
The local anchor point relative to body1's origin. |
Vec2 |
localAnchorB
The local anchor point relative to body2's origin. |
Vec2 |
localAxisA
The local translation axis in body1. |
float |
maxMotorTorque
The maximum motor torque, usually in N-m. |
float |
motorSpeed
The desired motor speed in radians per second. |
| Fields inherited from class org.jbox2d.dynamics.joints.JointDef |
|---|
bodyA, bodyB, collideConnected, type, userData |
| Constructor Summary | |
|---|---|
WheelJointDef()
|
|
| Method Summary | |
|---|---|
void |
initialize(Body b1,
Body b2,
Vec2 anchor,
Vec2 axis)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final Vec2 localAnchorA
public final Vec2 localAnchorB
public final Vec2 localAxisA
public boolean enableMotor
public float maxMotorTorque
public float motorSpeed
public float frequencyHz
public float dampingRatio
| Constructor Detail |
|---|
public WheelJointDef()
| Method Detail |
|---|
public void initialize(Body b1,
Body b2,
Vec2 anchor,
Vec2 axis)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||