Search code examples
ioscocos2d-iphonebox2dphysics-engine

Box2D implementation issue


I am trying to put Box2D into my app. I have the Box2D folder from the latest Cocos2D release. I drag it into my project and I add it to the destination group folder and I get 4 errors, it is where the compiler can't find b2Collision.h, b2BroadPhase.h, and b2Collision.h, I know there are 2 errors for the collision. There is another error but it comes and goes based upon how to implement it. Anyway, with the way I am implementing it, how do I get rid of these errors? Does anyone have any ideas/tips?

Thanks!!!


Solution

  • Add "${SRCROOT}/path_to_box2d_folder" to your User Header Search Path and set Always Search User Paths to yes in your project build settings.