object.mass

Type Number
Object Body
Library physics.*
Revision Current Public Release (2017.3135)
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 )