Provides methods used for setting the mass properties of an Arcade Physics Body.
- Since: 3.0.0
- Source: src/physics/arcade/components/Mass.js (Line 7)
Methods
-
setMass(value)
-
Sets the mass of the physics body
Parameters:
Name Type Description value
number New value for the mass of the body.
- Since: 3.0.0
- Source: src/physics/arcade/components/Mass.js (Line 15)
Returns:
This Game Object.