com.badlogic.gdx.physics.box2d.joints
Class RopeJointDef

java.lang.Object
  extended by com.badlogic.gdx.physics.box2d.JointDef
      extended by com.badlogic.gdx.physics.box2d.joints.RopeJointDef

public class RopeJointDef
extends JointDef

Rope joint definition. This requires two body anchor points and a maximum lengths. Note: by default the connected objects will not collide. see collideConnected in b2JointDef.

Author:
mzechner

Nested Class Summary
 
Nested classes/interfaces inherited from class com.badlogic.gdx.physics.box2d.JointDef
JointDef.JointType
 
Field Summary
 Vector2 localAnchorA
          The local anchor point relative to bodyA's origin.
 Vector2 localAnchorB
          The local anchor point relative to bodyB's origin.
 float maxLength
          The maximum length of the rope.
 
Fields inherited from class com.badlogic.gdx.physics.box2d.JointDef
bodyA, bodyB, collideConnected, type
 
Constructor Summary
RopeJointDef()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

localAnchorA

public final Vector2 localAnchorA
The local anchor point relative to bodyA's origin.


localAnchorB

public final Vector2 localAnchorB
The local anchor point relative to bodyB's origin.


maxLength

public float maxLength
The maximum length of the rope. Warning: this must be larger than b2_linearSlop or the joint will have no effect.

Constructor Detail

RopeJointDef

public RopeJointDef()


Copyright © 2013. All Rights Reserved.