org.jbox2d.dynamics.joints
Class LineJointDef

java.lang.Object
  extended by org.jbox2d.dynamics.joints.JointDef
      extended by org.jbox2d.dynamics.joints.LineJointDef

public class LineJointDef
extends JointDef

Author:
Daniel Murphy

Field Summary
 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 upperTranslation
          The upper translation limit, usually in meters.
 
Fields inherited from class org.jbox2d.dynamics.joints.JointDef
bodyA, bodyB, collideConnected, type, userData
 
Constructor Summary
LineJointDef()
           
 
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

localAnchorA

public final Vec2 localAnchorA
The local anchor point relative to body1's origin.


localAnchorB

public final Vec2 localAnchorB
The local anchor point relative to body2's origin.


localAxisA

public final Vec2 localAxisA
The local translation axis in body1.


enableLimit

public boolean enableLimit
Enable/disable the joint limit.


lowerTranslation

public float lowerTranslation
The lower translation limit, usually in meters.


upperTranslation

public float upperTranslation
The upper translation limit, usually in meters.


enableMotor

public boolean enableMotor
Enable/disable the joint motor.


maxMotorForce

public float maxMotorForce
The maximum motor torque, usually in N-m.


motorSpeed

public float motorSpeed
The desired motor speed in radians per second.

Constructor Detail

LineJointDef

public LineJointDef()
Method Detail

initialize

public void initialize(Body b1,
                       Body b2,
                       Vec2 anchor,
                       Vec2 axis)


Copyright © 2012. All Rights Reserved.