getConstraints() → {array.<Phaser.Physics.P2.Constraint>}
Populates and returns an array of all current Constraints in the world.
You will get an array of p2 constraints back. This can be of mixed types, for example the array may contain
PrismaticConstraints, RevoluteConstraints or any other valid p2 constraint type.
Returns
array.<Phaser.Physics.P2.Constraint> -
An array containing all current Constraints in the world.
- Source code: physics/p2/World.js (Line 1335)
Please login to continue.