Wednesday, December 11, 2013

Some people do not cocos2d, box2d only in the project with it? Box2d solved only under circumstances how to use GLES-Render drawn to the body

OpenGL part of my own class encapsulates a spirit with a physics engine would like to use box2d, has also been placed in a separate writing my own 2D engines, but want to use the debug draw box2d function, you need to use GLES-Render.h with GLES-Render.mm, using a bag to box2d that two documents. I follow steps to use the debug draw in cocos2d similar tone a bit, but nothing world objects drawn, have a big head.

Someone without using cocos2d case, only in the project with box2d it? How to draw with box2d debug draw?
Plus box2d version I use is 2.2.0

No comments:

Post a Comment