b2PolygonShape m_polygonA
void Initialize(const b2Manifold *manifold, const b2Transform &xfA, float radiusA, const b2Transform &xfB, float radiusB)
b2Vec2 b2Mul(const b2Mat22 &A, const b2Vec2 &v)
b2Vec2 points[b2_maxManifoldPoints]
world contact point (point of intersection)
void DrawPoint(const b2Vec2 &p, float size, const b2Color &color) override
Draw a point.
void DrawPolygon(const b2Vec2 *vertices, int32 vertexCount, const b2Color &color) override
Draw a closed polygon provided in CCW order.
b2PolygonShape m_polygonB
Color for debug drawing. Each value has the range [0,1].
void SetAsBox(float hx, float hy)
void Step(Settings &settings) override
void Set(float x_, float y_)
Set this vector to some specified coordinates.
b2Vec2 m_vertices[b2_maxPolygonVertices]
int32 pointCount
the number of manifold points
void Keyboard(int key) override
B2_API void b2CollidePolygons(b2Manifold *manifold, const b2PolygonShape *polygonA, const b2Transform &xfA, const b2PolygonShape *polygonB, const b2Transform &xfB)
Compute the collision manifold between two polygons.
int RegisterTest(const char *category, const char *name, TestCreateFcn *fcn)
#define b2_maxPolygonVertices
void DrawString(int x, int y, const char *string,...)
virtual void Step(Settings &settings)
This is used to compute the current state of a contact manifold.