Phaser API Documentation

  Version: 
Filter
This is a beta release of our new docs system. Found an issue?
Please tell us about it in the #📖-newdocs-feedback channel on the Phaser Discord
Namespace: Mass
Phaser.Physics.Arcade.Components.Mass

Methods

setMass(value)
Focus
Focus

Description:

Sets the mass of the physics body

Parameters:

name type description
value number

New value for the mass of the body.

Returns:
Description:

This Game Object.

Examples:
Since: 3.0.0
Focus
Focus