public class WheelJoint extends Joint
addr, jointEdgeA, jointEdgeB
Constructor and Description |
---|
WheelJoint(World world,
long addr) |
Modifier and Type | Method and Description |
---|---|
void |
enableMotor(boolean flag)
Enable/disable the joint motor.
|
float |
getJointSpeed()
Get the current joint translation speed, usually in meters per second.
|
float |
getJointTranslation()
Get the current joint translation, usually in meters.
|
Vector2 |
getLocalAnchorA() |
Vector2 |
getLocalAnchorB() |
Vector2 |
getLocalAxisA() |
float |
getMaxMotorTorque() |
float |
getMotorSpeed()
Get the motor speed, usually in radians per second.
|
float |
getMotorTorque(float invDt)
Get the current motor torque given the inverse time step, usually in N-m.
|
float |
getSpringDampingRatio() |
float |
getSpringFrequencyHz() |
boolean |
isMotorEnabled()
Is the joint motor enabled?
|
void |
setMaxMotorTorque(float torque)
Set/Get the maximum motor force, usually in N-m.
|
void |
setMotorSpeed(float speed)
Set the motor speed, usually in radians per second.
|
void |
setSpringDampingRatio(float ratio)
Set/Get the spring damping ratio
|
void |
setSpringFrequencyHz(float hz)
Set/Get the spring frequency in hertz.
|
getAnchorA, getAnchorB, getBodyA, getBodyB, getCollideConnected, getReactionForce, getReactionTorque, getType, getUserData, isActive, setUserData
public WheelJoint(World world, long addr)
public Vector2 getLocalAnchorA()
public Vector2 getLocalAnchorB()
public Vector2 getLocalAxisA()
public float getJointTranslation()
public float getJointSpeed()
public boolean isMotorEnabled()
public void enableMotor(boolean flag)
public void setMotorSpeed(float speed)
public float getMotorSpeed()
public void setMaxMotorTorque(float torque)
public float getMaxMotorTorque()
public float getMotorTorque(float invDt)
public void setSpringFrequencyHz(float hz)
public float getSpringFrequencyHz()
public void setSpringDampingRatio(float ratio)
public float getSpringDampingRatio()