Constructor
new SpringConstraint(body1, body2, localA, localB)
Parameters:
Name | Type | Description |
---|---|---|
body1 |
Body2D | |
body2 |
Body2D | |
localA |
Vector2 | |
localB |
Vector2 |
Classes
Methods
behavior(body1, body2, dt)
Parameters:
Name | Type | Description |
---|---|---|
body1 |
Body2D | |
body2 |
Body2D | |
dt |
number |