30
float32 ReportFixture( b2Fixture* fixture, const b2Vec2& point,
31
const b2Vec2& normal, float32 fraction)
30
float32 ReportFixture(b2Fixture* fixture, const b2Vec2& point,
31
const b2Vec2& normal, float32 fraction)
33
33
m_fixture = fixture;
79
vertices[0].Set(-0.5f, 0.0f);
80
vertices[1].Set(0.5f, 0.0f);
81
vertices[2].Set(0.0f, 1.5f);
82
m_polygons[0].Set(vertices, 3);
79
vertices[0].Set(-0.5f, 0.0f);
80
vertices[1].Set(0.5f, 0.0f);
81
vertices[2].Set(0.0f, 1.5f);
82
m_polygons[0].Set(vertices, 3);
86
86
b2Vec2 vertices[3];
201
201
bool advanceRay = settings->pause == 0 || settings->singleStep;
203
203
Test::Step(settings);
204
m_debugDraw.DrawString(5, m_textLine, "Press 1-5 to drop stuff");
204
g_debugDraw.DrawString(5, m_textLine, "Press 1-5 to drop stuff");
205
205
m_textLine += DRAW_STRING_NEW_LINE;
207
207
float32 L = 25.0f;
216
216
if (callback.m_fixture)
218
m_debugDraw.DrawPoint(callback.m_point, 5.0f, b2Color(0.4f, 0.9f, 0.4f));
218
g_debugDraw.DrawPoint(callback.m_point, 5.0f, b2Color(0.4f, 0.9f, 0.4f));
220
m_debugDraw.DrawSegment(point1, callback.m_point, b2Color(0.8f, 0.8f, 0.8f));
220
g_debugDraw.DrawSegment(point1, callback.m_point, b2Color(0.8f, 0.8f, 0.8f));
222
222
b2Vec2 head = callback.m_point + 0.5f * callback.m_normal;
223
m_debugDraw.DrawSegment(callback.m_point, head, b2Color(0.9f, 0.9f, 0.4f));
223
g_debugDraw.DrawSegment(callback.m_point, head, b2Color(0.9f, 0.9f, 0.4f));
227
m_debugDraw.DrawSegment(point1, point2, b2Color(0.8f, 0.8f, 0.8f));
227
g_debugDraw.DrawSegment(point1, point2, b2Color(0.8f, 0.8f, 0.8f));