mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
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:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user