void Set(const b2Shape *shape, int32 index)
b2Vec2 b2Mul(const b2Mat22 &A, const b2Vec2 &v)
b2PolygonShape m_polygonA
void DrawPoint(const b2Vec2 &p, float size, const b2Color &color) override
Draw a point.
int32 iterations
number of GJK iterations used
b2Vec2 pointB
closest point on shapeB
void DrawPolygon(const b2Vec2 *vertices, int32 vertexCount, const b2Color &color) override
Draw a closed polygon provided in CCW order.
Color for debug drawing. Each value has the range [0,1].
void SetAsBox(float hx, float hy)
b2Vec2 pointA
closest point on shapeA
void Set(float x_, float y_)
Set this vector to some specified coordinates.
b2PolygonShape m_polygonB
b2Vec2 m_vertices[b2_maxPolygonVertices]
void Step(Settings &settings) override
B2_API void b2Distance(b2DistanceOutput *output, b2SimplexCache *cache, const b2DistanceInput *input)
void Keyboard(int key) override
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)