name | type | arguments | Default | description |
---|---|---|---|---|
label | string | <optional> | 'Constraint' |
An arbitrary string-based name to help identify this constraint. |
bodyA | MatterJS.BodyType | <optional> |
The first possible |
|
bodyB | MatterJS.BodyType | <optional> |
The second possible |
|
pointA | Phaser.Types.Math.Vector2Like | <optional> |
A |
|
pointB | Phaser.Types.Math.Vector2Like | <optional> |
A |
|
stiffness | number | <optional> | 1 |
A |
angularStiffness | number | <optional> | 0 |
A |
angleA | number | <optional> | 0 |
The angleA of the constraint. If bodyA is set, the angle of bodyA is used instead. |
angleB | number | <optional> | 0 |
The angleB of the constraint. If bodyB is set, the angle of bodyB is used instead. |
damping | number | <optional> | 0 |
A |
length | number | <optional> |
A |
|
plugin | any | <optional> |
An object reserved for storing plugin-specific properties. |
|
render | Phaser.Types.Physics.Matter.MatterConstraintRenderConfig | <optional> |
The Debug Render configuration object for this constraint. |