Sets a new body mass.
Available since LÖVE 0.8.0
This variant is not supported in earlier versions.
body:setMass( mass )
number mass
Nothing.
Removed in LÖVE 0.8.0
This variant is not supported in that and later versions.
Sets the mass properties directly.
If you're not sure what all this stuff means, you can use Body:setMassFromShapes after adding shapes instead.
The first two parameters will be the local coordinates of the Body's center of mass.
The third parameter is the mass, in kilograms.
The last parameter is the rotational inertia.
body:setMass( x, y, m, i )
number x
number y
number m
number i
Nothing.
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Body:setMass