Constructor
new Box2dFrictionJoint(objectA, objectB, anchor, collideopt)
Create a friction joint
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
objectA | Box2dObject | |||
objectB | Box2dObject | |||
anchor | Vector2 | |||
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
getMaxForce() → {number}
Get the maximum friction force
- Source
Returns:
- Type:
- number
getMaxTorque() → {number}
Get the maximum friction torque
- Source
Returns:
- Type:
- number
setMaxForce(force)
Set the maximum friction force
Parameters:
Name | Type | Description |
---|---|---|
force | number |
- Source
setMaxTorque(torque)
Set the maximum friction torque
Parameters:
Name | Type | Description |
---|---|---|
torque | number |
- Source