B2GETBODYMASS

This command will return the mass of the specified object.  The mass is a function of the object's size and density and determines how much it is affected by gravity.  The parameter should be the integer handle of the body.

 

Syntax

Return as Float = b2GetBodyMass(ID as Integer)

Related Information

BOX2D Commands Menu
Index