Hi.
I've been trying Box2d for iPhone and I've run into a snag.
I've made a floor and a box, the box drops, and they collide.
Easy, hu?
But I can't see them! I tried using a CCSprite, but it just kept being in the lower left hand corner.
So I tried using the debug draw, but I can't get debug draw to even work.
I think they're off screen. The position of the ground is (0.0f, -10.0f) in my code and the box is (0,0).
Are they off screen? Taking note that the iPhone is in Portrait mode.
But before you answer that, how do you do debug draw?
I've been trying Box2d for iPhone and I've run into a snag.
I've made a floor and a box, the box drops, and they collide.
Easy, hu?
But I can't see them! I tried using a CCSprite, but it just kept being in the lower left hand corner.
So I tried using the debug draw, but I can't get debug draw to even work.
I think they're off screen. The position of the ground is (0.0f, -10.0f) in my code and the box is (0,0).
Are they off screen? Taking note that the iPhone is in Portrait mode.
But before you answer that, how do you do debug draw?