object.mass

Type Number
Object Body
Library physics.*
Revision 2017.3060
Keywords body, mass
See also object:resetMassData()

Overview

A read-only value representing the body's mass.

Example

local bullet = display.newCircle( 100, 100, 10 )
physics.addBody( bullet, "dynamic", { radius=10 } )

print( bullet.mass )