Home
News
Learn
Download
Examples
Community
Plugins
Phaser API Documentation
Version:
Namespaces
Classes
Events
Game Objects
Physics
Scenes
Changelog
Member of:
Phaser.Physics.Matter.Components.Mass
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.
Type:
Phaser.GameObjects.GameObject
Since:
3.0.0
Source:
src/physics/matter-js/components/Mass.js
(Line
18
)
Possible examples