Phaser API Documentation

  Version: 
setMass(value)

Description:

Sets the mass of the Game Object's Matter Body.

Parameters:

name type description
value number

The new mass of the body.

Returns:
Description:

This Game Object.

Since: 3.0.0