Fix #1614: add Body:getLocalPoints

This commit is contained in:
Qais Patankar
2020-12-30 04:27:48 +00:00
parent 95ab4054ff
commit 562cc6b1cb
3 changed files with 38 additions and 0 deletions
+6
View File
@@ -317,6 +317,12 @@ public:
**/
void getLocalVector(float x, float y, float &x_o, float &y_o);
/**
* Transforms a series of points (x, y) from world coordinates
* to local coordinates.
**/
int getLocalPoints(lua_State *L);
/**
* Gets the velocity on the Body for the given world point.
* @param x The x-coordinate of the world point.