org.jbox2d.dynamics.joints
Class PulleyJointDef
java.lang.Object
org.jbox2d.dynamics.joints.JointDef
org.jbox2d.dynamics.joints.PulleyJointDef
public class PulleyJointDef
- extends JointDef
The pulley joint is connected to two bodies and two fixed ground points.
The pulley supports a ratio such that:
length1 + ratio * length2 = constant
Yes, the force transmitted is scaled by the ratio.
The pulley also enforces a maximum length limit on both sides. This is
useful to prevent one side of the pulley hitting the top.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
groundAnchor1
public Vec2 groundAnchor1
groundAnchor2
public Vec2 groundAnchor2
localAnchor1
public Vec2 localAnchor1
localAnchor2
public Vec2 localAnchor2
length1
public float length1
maxLength1
public float maxLength1
length2
public float length2
maxLength2
public float maxLength2
ratio
public float ratio
PulleyJointDef
public PulleyJointDef()
initialize
public void initialize(Body b1,
Body b2,
Vec2 ga1,
Vec2 ga2,
Vec2 anchor1,
Vec2 anchor2,
float r)