B2GETPARTTYPE

This command will return the type of the specified part.  A part is basically a shape in a body made from a template.  A value of 0 indicates a circle shape, a value of 1 indicates a box shape, and a value of 2 indicates a polygon shape.  The PartID should be the integer handle of the part to be checked.

 

Syntax

Return as Integer = b2GetPartType(PartID as Integer)

Related Information

BOX2D Commands Menu
Index