Phaser API Documentation

  Version: 
setDensity(value)

Description:

Sets density of the body.

Parameters:

name type description
value number

The new density of the body.

Returns:
Description:

This Game Object.

Since: 3.0.0