com.badlogic.gdx.physics.box2d.joints
Class RopeJoint
java.lang.Object
com.badlogic.gdx.physics.box2d.Joint
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.
Method Summary |
float |
getMaxLength()
Get the maximum length of the rope. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RopeJoint
public RopeJoint(World world,
long addr)
getMaxLength
public float getMaxLength()
- Get the maximum length of the rope.
Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)