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

java.lang.Object
  extended by com.badlogic.gdx.physics.box2d.Joint
      extended by com.badlogic.gdx.physics.box2d.joints.RopeJoint

public class RopeJoint
extends Joint

A rope joint enforces a maximum distance between two points on two bodies. It has no other effect. Warning: if you attempt to change the maximum length during the simulation you will get some non-physical behavior. A model that would allow you to dynamically modify the length would have some sponginess, so I chose not to implement it that way. See b2DistanceJoint if you want to dynamically control length.


Constructor Summary
RopeJoint(World world, long addr)
           
 
Method Summary
 float getMaxLength()
          Get the maximum length of the rope.
 void setMaxLength(float length)
          Set the maximum length of the rope.
 
Methods inherited from class com.badlogic.gdx.physics.box2d.Joint
getAnchorA, getAnchorB, getBodyA, getBodyB, getReactionForce, getReactionTorque, getType, getUserData, isActive, setUserData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RopeJoint

public RopeJoint(World world,
                 long addr)
Method Detail

getMaxLength

public float getMaxLength()
Get the maximum length of the rope.


setMaxLength

public void setMaxLength(float length)
Set the maximum length of the rope.



Copyright © 2013. All Rights Reserved.