org.jbox2d.dynamics.joints
Class PrismaticJointDef
java.lang.Object
org.jbox2d.dynamics.joints.JointDef
org.jbox2d.dynamics.joints.PrismaticJointDef
public class PrismaticJointDef
- extends JointDef
A prismatic joint definition. This joint provides one degree of freedom: translation
along an axis fixed in body1. Relative rotation is prevented. You can
use a joint limit to restrict the range of motion and a joint motor to
drive the motion or to model joint friction.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
localAnchor1
public Vec2 localAnchor1
localAnchor2
public Vec2 localAnchor2
localAxis1
public Vec2 localAxis1
referenceAngle
public float referenceAngle
enableLimit
public boolean enableLimit
lowerTranslation
public float lowerTranslation
upperTranslation
public float upperTranslation
enableMotor
public boolean enableMotor
maxMotorForce
public float maxMotorForce
motorSpeed
public float motorSpeed
PrismaticJointDef
public PrismaticJointDef()
initialize
public void initialize(Body b1,
Body b2,
Vec2 anchor,
Vec2 axis)