Constructor
new Box2dRopeJoint(objectA, objectB, anchorA, anchorB, extraLength, collideopt)
Create a rope joint
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
objectA | Box2dObject | |||
objectB | Box2dObject | |||
anchorA | Vector2 | |||
anchorB | Vector2 | |||
extraLength | number | 0 | ||
collide | boolean | <optional> | false |
- Source
Extends
- Box2dJoint
Methods
getLocalAnchorA() → {Vector2}
Get the local anchor point relative to objectA's origin
- Source
Returns:
- Type:
- Vector2
getLocalAnchorB() → {Vector2}
Get the local anchor point relative to objectB's origin
- Source
Returns:
- Type:
- Vector2
getMaxLength() → {number}
Get the max length of the joint
- Source
Returns:
- Type:
- number
setMaxLength(length)
Set the max length of the joint
Parameters:
Name | Type | Description |
---|---|---|
length | number |
- Source