Body:hasCustomMassData

Available since LÖVE 12.0
This method is not supported in earlier versions.

Gets whether the Body's mass data has been set to custom values via Body:setMass, Body:setInertia, or Body:setMassData.


When a Body does not have customized mass data, it is automatically calculated based on attached Shapes and their densities.

Function

Synopsis

custommass = Body:hasCustomMassData( )

Arguments

None.

Returns

boolean custommass
True if the body has custom mass data, false if not.

See Also


Other Languages