making a stab at updating Shapes

--HG--
branch : box2d-update
This commit is contained in:
Bill Meltsner
2011-03-13 09:33:32 -04:00
parent e32a373dc9
commit c3d69746c1
16 changed files with 300 additions and 746 deletions
+6 -15
View File
@@ -41,15 +41,6 @@ namespace box2d
**/
class CircleShape : public Shape
{
private:
// The radius of the circle. We need to store this because
// Box2D has no built-in method for getting the radius.
float radius;
// Local offset.
b2Vec2 localPosition;
public:
/**
@@ -58,7 +49,7 @@ namespace box2d
* @param body The parent body.
* @param def The CircleShape definition.
**/
CircleShape(Body * body, b2CircleDef * def);
CircleShape(b2CircleShape * c);
virtual ~CircleShape();
@@ -66,11 +57,11 @@ namespace box2d
* Gets the radius for the circle.
**/
float getRadius() const;
// There is no support for setting the radius.
void getLocalCenter(float & x, float & y) const;
void getWorldCenter(float & x, float & y) const;
/**
* Gets the radius for the circle.
**/
void setRadius(float r);
};
} // box2d