Add love.physics.getDistance(fixtureA, fixtureB) - gets the distance between and the closest points of two fixtures

--HG--
branch : box2d-update
This commit is contained in:
Bill Meltsner
2011-09-24 17:29:42 -04:00
parent 3bd2316c6c
commit 680dd65c19
5 changed files with 42 additions and 0 deletions
+9
View File
@@ -258,6 +258,15 @@ namespace box2d
Fixture * newFixture(Body * body, Shape * shape, float density);
/**
* Calculates the distance between two Fixtures.
* @param fixtureA The first Fixture.
* @param fixtureB The sceond Fixture.
* @return The distance between them, and the two points closest
* to each other.
**/
int getDistance(lua_State * L);
/**
* Sets the number of pixels in one meter.
* @param pixels The number of pixels in one meter. (1m ~= 3.3ft).