--HG-- branch : box2d-update
@@ -34,10 +34,8 @@ namespace physics
namespace box2d
{
ChainShape::ChainShape(b2ChainShape * c, bool loop)
- : loop(loop)
+ : Shape(c), loop(loop)
- shape = c;
- Memoizer::add(shape, this);
}
ChainShape::~ChainShape()
@@ -33,9 +33,8 @@ namespace physics
CircleShape::CircleShape(b2CircleShape * c)
+ : Shape(c)
CircleShape::~CircleShape()
EdgeShape::EdgeShape(b2EdgeShape * e)
+ : Shape(e)
- shape = e;
EdgeShape::~EdgeShape()
@@ -34,9 +34,8 @@ namespace physics
PolygonShape::PolygonShape(b2PolygonShape * p)
+ : Shape(p)
- shape = p;
PolygonShape::~PolygonShape()