You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Physics Library > mass

19.4.13 mass

m = physics.Body:mass()

Parameter

Type

Description

self

in physics.Body

The input Body

m

out number

The mass of the Body


Returns the mass of the body.

Introduced in platform.apiLevel = '2.0'