b2d_body_create(world)
Jump to navigation
Jump to search
Description
Creates a new physics body in the given world.
Parameters
Parameter | Data Type | Description |
---|---|---|
world | integer | index of the world to create the body in |
Return Values
integer: Returns the index of the newly created body.
Example Call
// demonstrates creating a physics body
mybody = b2d_body_create(myworld);