Add Body:getWorldPoints, basically for use with PolygonShape:getPoints to facilitate easier drawing

--HG--
branch : box2d-update
This commit is contained in:
Bill Meltsner
2011-09-24 03:39:21 -04:00
parent 08f894a98e
commit a0c0fd8387
4 changed files with 34 additions and 0 deletions
+6
View File
@@ -282,6 +282,12 @@ namespace box2d
* @returns The y-coordinate of the vector in world coordinates.
**/
void getWorldVector(float x, float y, float & x_o, float & y_o);
/**
* Transforms a series of points (x, y) from local coordinates
* to world coordinates.
**/
int getWorldPoints(lua_State * L);
/**
* Transforms a point (x, y) from world coordinates