Physics.P2.BodyDebug#getRandom()

getRandom(startIndex, length) → {any}

Returns a random child from the group.

Parameters
Name Type Argument Default Description
startIndex integer <optional>
0

Offset from the front of the group (lowest child).

length integer <optional>
(to top)

Restriction on the number of values you want to randomly select from.

Returns
any -

A random child of this Group.

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

Please login to continue.