Physics.P2#getConstraints()

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)
doc_phaser
2017-02-14 11:01:09
Comments
Leave a Comment

Please login to continue.