object.mass

Type Number
Object Body
Library physics.*
Revision Release 2022.3683
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 )