Physics.P2.BodyDebug#getIndex()

getIndex(child) → {integer}

Get the index position of the given child in this group, which should match the child's z property.

Parameters
Name Type Description
child any

The child to get the index for.

Returns
integer -

The index of the child or -1 if it's not a member of this group.

Inherited From
Source code: core/Group.js (Line 1029)
doc_phaser
2017-02-14 11:03:31
Comments
Leave a Comment

Please login to continue.