Physics.P2.BodyDebug#destroy()

destroy(destroyChildren, soft)

Destroys this group.

Removes all children, then removes this group from its parent and nulls references.

Parameters
Name Type Argument Default Description
destroyChildren boolean <optional>
true

If true destroy will be invoked on each removed child.

soft boolean <optional>
false

A 'soft destroy' (set to true) doesn't remove this group from its parent or null the game reference. Set to false and it does.

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

Please login to continue.