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