public class PrismaticJointDef extends JointDef
Modifier and Type | Field and Description |
---|---|
boolean |
enableLimit
Enable/disable the joint limit.
|
boolean |
enableMotor
Enable/disable 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.
|
Vec2 |
localAxisA
The local translation axis in body1.
|
float |
lowerTranslation
The lower translation limit, usually in meters.
|
float |
maxMotorForce
The maximum motor torque, usually in N-m.
|
float |
motorSpeed
The desired motor speed in radians per second.
|
float |
referenceAngle
The constrained angle between the bodies: body2_angle - body1_angle.
|
float |
upperTranslation
The upper translation limit, usually in meters.
|
Constructor and Description |
---|
PrismaticJointDef() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(Body b1,
Body b2,
Vec2 anchor,
Vec2 axis)
Initialize the bodies, anchors, axis, and reference angle using the world
anchor and world axis.
|
public final Vec2 localAnchorA
public final Vec2 localAnchorB
public final Vec2 localAxisA
public float referenceAngle
public boolean enableLimit
public float lowerTranslation
public float upperTranslation
public boolean enableMotor
public float maxMotorForce
public float motorSpeed
Copyright © 2017. All Rights Reserved.