B2GETPARTRESTITUTION

This command will return the restitution of the specified part.  A part is basically a shape in a body made from a template.  Restitution specifies how "bouncy" a body or part is.  The PartID should be the integer handle of the part to be checked.

 

Syntax

Return as Float = b2GetPartRestitution(PartID as Integer)

Related Information

BOX2D Commands Menu
Index