b2RopeJointDef Class
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.
Constructor
b2RopeJointDef
()
Item Index
Methods
Properties
Methods
initialize
(
Void
public
-
bodyA
-
bodyB
-
anchorA
-
anchorB
Parameters:
-
bodyA
B2Body -
bodyB
B2Body -
anchorA
B2Vec2 -
anchorB
B2Vec2
Returns:
Void:
Properties
bodyA
B2Body | Null
public
Default: null
bodyB
B2Body | Null
public
Default: null
localAnchorA
B2Vec2
public
The local anchor point relative to bodyA's origin.
Default: (-1, 0)
localAnchorB
B2Vec2
public
The local anchor point relative to bodyB's origin.
Default: (1, 0)
maxLength
Number
public
The maximum length of the rope.
Warning: this must be larger than b2Settings.b2_linearSlop or the joint will have no effect.
Default: 0.0
type
Int
public
Default: {b2RopeJoint} b2RopeJoint