B2GETSHAPETYPE

This command will return the type of the specified shape.  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 parameter should be the handle of the shape to be checked.

 

Syntax

Return as Integer = b2GetShapeType(ShapeID as Integer)

Related Information

BOX2D Commands Menu
Index