Phaser API Documentation

  Version: 
setMass(value)

Description:

Sets the Mass of the StaticBody. Will set the Mass to 0.1 if the value passed is less than or equal to zero.

Parameters:

name type description
value number

The value to set the Mass to. Values of zero or less are changed to 0.1.

Returns:
Description:

This Static Body object.

Since: 3.0.0