object.mass

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