Home
News
Learn
Download
Examples
Community
Login
Phaser API Documentation
Version:
Namespaces
Classes
Events
Game Objects
Physics
Scenes
Changelog
Filter
Hide inherited members:
show private members:
Namespace: Mass
Phaser.Physics.Arcade.Components.Mass
Source:
src/physics/arcade/components/Mass.js
(Line
7
)
Methods
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.Components.Mass
Since:
3.0.0
Source:
src/physics/arcade/components/Mass.js
(Line
15
)