Add EdgeShape:getPoints()

--HG--
branch : box2d-update
This commit is contained in:
Bill Meltsner
2011-09-29 11:19:30 -04:00
parent fa58c87605
commit 5d26c564e0
4 changed files with 31 additions and 0 deletions
+8
View File
@@ -45,6 +45,14 @@ namespace box2d
EdgeShape(b2EdgeShape * e);
virtual ~EdgeShape();
/**
* Returns the transformed points of the edge shape.
* This function is useful for debug drawing and such.
*
* The result can be directly passed into love.graphics.line().
**/
int getPoints(lua_State * L);
};
} // box2d