mirror of
https://github.com/love2d/love.git
synced 2026-08-17 02:58:31 +02:00
Add Body:getWorldPoints, basically for use with PolygonShape:getPoints to facilitate easier drawing
--HG-- branch : box2d-update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user