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
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info