Bullet debug drawer with OpenGL
问题 I have been fiddling around with bullet for a bit and I now want to draw debug. I have an opengl world with working bullet physics and everything. What I have tried is this: I have created a class GLDebugDrawer like this: #include "LinearMath/btIDebugDraw.h" class GLDebugDrawer : public btIDebugDraw { int m_debugMode; public: GLDebugDrawer(); virtual ~GLDebugDrawer(); virtual void drawLine(const btVector3& from, const btVector3& to, const btVector3& fromColor, const btVector3& toColor);