B2GETWORLDBODY

This command will return the handle of the specified body in the specified world.  You can then use this number to examine or alter the body with the standard commands for rigid bodies.  The ID should be the integer handle that was returned when the world was created.  The Index should be the index number of the body to be retrieved.  You can get the number of bodies in a world using b2GetWorldBodyCount.

 

Syntax

Return as Integer = b2GetWorldBody(ID as Integer, Index as Integer)

Related Information

BOX2D Commands Menu
Index