19.4.22
setMass
self = physics.Body:setMass(mass)
Parameter |
Type |
Description |
---|---|---|
self |
in physics.Body |
The input Body |
mass |
in number |
The mass of the Body |
self |
out physics.Body |
The input Body is returned as the output |
Updates
the mass of the body.
Returns the Body.
Introduced in platform.apiLevel = '2.0'