Debug draw in Box2D demo don't work?

Debug draw in Box2D demo don't work?
0.0 0


Hey, guys, I’m researching official demo samples in 2.0.1, after modifying drawContactPoints(0) and drawContactNormals(0) to 1 in Test.h , expected seeing the contact points and normals, but nothing appears except shapes and joints. After investigation, it seeme all the procedures in class GLESDebugDraw don’t work propertly, anyone know why?

Also I followed this post, but not helpful to me:


Finally fixed by myself, it seems “m_test~~>Step;" in tick should be moved into draw to replace "m_test~~>m_world->DrawDebugData()”, tick() is not a necessary procedure.