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.

Examples:
Since: 3.0.0