B2GETWORLDBODYCOUNT

This command will return the number of rigid bodies in the specified world.  You can then use this number to examine the bodies in greater depth with b2GetWorldBody.  The parameter should be the integer handle that was returned when the world was created.

 

Syntax

Return as Integer = b2GetWorldBodyCount(ID as Integer)

Related Information

BOX2D Commands Menu
Index