Add type to Body constructor (defaults to "static")

--HG--
branch : box2d-update
This commit is contained in:
Bill Meltsner
2011-09-24 02:15:46 -04:00
parent 5f4b4c8838
commit 8592b98525
5 changed files with 15 additions and 9 deletions
+4 -2
View File
@@ -81,14 +81,16 @@ namespace box2d
* @param world The world to create the Body in.
* @param x The position along the x-axis.
* @param x The position along the y-axis.
* @param type The type of body to create.
**/
Body * newBody(World * world, float x, float y);
Body * newBody(World * world, float x, float y, Body::Type type);
/**
* Creates a new Body at (0, 0)
* @param world The world to create the Body in.
* @param type The type of Body to create.
**/
Body * newBody(World * world);
Body * newBody(World * world, Body::Type type);
/**
* Creates a new CircleShape at (0, 0).