I'm just starting out with Box2D and indeed C++ and I'm having trouble understanding the testbed. As stupid as it sounds I can't find the actual files which are used in the examples. I'm not using Box2D very heavily in my current project so I don't want to learn C++ in full. I wanted to find an example of using raycasting and I knew this was present in the testbed. I found the RayCast.h file but it seems to be defining the functions used rather than how to use them. It still enabled me to have a rough grasp on what to do however when I define a variable of type "RayCastCallback" I get the error "RayCastCallback was not declared in this scope", presumably because something has not been imported that should have been.
So I guess that I have 2 rather basic questions:
-Where do I find the Box2D examples within the Xcode project?
-How can I define a RayCastCallback variable, presumably I have to import or include something?
I realise these questions are rather basic but I've just spent the last hour trawling Google and these forums to try to sort out my problems. Any help would be much appreciated. Thanks!