addConstraint(constraint) → {Phaser.Physics.P2.Constraint}
Adds a Constraint to the world.
Parameters
Name | Type | Description |
---|---|---|
constraint | Phaser.Physics.P2.Constraint | The Constraint to add to the World. |
Returns
Phaser.Physics.P2.Constraint -
The Constraint that was added.
- Source code: physics/p2/World.js (Line 1119)
Please login to continue.