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