B2CREATEBODYTEMPLATE

This command will create a blank body template.  The template only exists to be made into a body, it does not interact with other templates or bodies.  Shapes can be added to the template with B2ADDSHAPETOBODYTEMPLATE, and it can be made into a static body using B2CREATEBODY.

The returned integer is a unique handle for the template.  You must store this value or you will not be able to add shapes to the template or create bodies from it.

 

Syntax

Return as Integer = b2CreateBodyTemplate()

Related Information

BOX2D Commands Menu
Index