Fix Fixture:getShape. Resolves issue #1319.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-09-22 20:31:24 -03:00
parent 4ee85e1793
commit 8ea2f09a1c
4 changed files with 52 additions and 17 deletions
+7 -2
View File
@@ -79,12 +79,12 @@ public:
* Gets the type of the Fixture's Shape. Useful for
* debug drawing.
**/
Shape::Type getType() const;
Shape::Type getType();
/**
* Gets the Shape attached to this Fixture.
**/
Shape *getShape() const;
Shape *getShape();
/**
* Returns true if the fixture is active in a Box2D world.
@@ -212,9 +212,14 @@ public:
protected:
void checkCreateShape();
Body *body;
fixtureudata *udata;
b2Fixture *fixture;
StrongRef<Shape> shape;
};
} // box2d