exposed new Shape functions

--HG--
branch : box2d-update
This commit is contained in:
Bill Meltsner
2011-09-15 15:31:09 -04:00
parent e5fa4c87c6
commit d8f3db6682
7 changed files with 165 additions and 3 deletions
+10 -1
View File
@@ -44,6 +44,9 @@ namespace box2d
**/
class Shape : public love::physics::Shape
{
private:
World * world; // We need a reference for scaling up/down
protected:
// The Box2D shape.
@@ -54,7 +57,7 @@ namespace box2d
/**
* Creates a Shape.
**/
Shape();
Shape(World * world);
virtual ~Shape();
@@ -63,6 +66,12 @@ namespace box2d
* debug drawing.
**/
Type getType() const;
float getRadius() const;
int getChildCount() const;
bool testPoint(float x, float y, float r, float px, float py) const;
int rayCast(lua_State * L) const;
int computeAABB(lua_State * L) const;
int computeMass(lua_State * L) const;
};
} // box2d