public class RopeJointDef
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.
Fields
public final Vec2 localAnchorA | The local anchor point relative to bodyA’s origin. |
public final Vec2 localAnchorB | The local anchor point relative to bodyB’s origin. |
public float maxLength | The maximum length of the rope. |
Constructors
public RopeJointDef() |
Inherited fields
Inherited methods
Field details
localAnchorA
public final Vec2 localAnchorAThe local anchor point relative to bodyA’s origin.
localAnchorB
public final Vec2 localAnchorBThe local anchor point relative to bodyB’s origin.
maxLength
public float maxLengthThe maximum length of the rope. Warning: this must be larger than b2_linearSlop or the joint
will have no effect.
Constructor details
RopeJointDef
public RopeJointDef()