Frozen box?

Howdy,

So I wrote a small program to test Box2d and I have a small issue. I have two objects, a static box on the ground, and a dynamic box at the top of the screen. Yes there is gravity. Anyway, the dynamic box falls under gravity normally until its Y position is about the same as its Y extend (or height/2). What could be causing this? Am I understanding the box 'extends' correctly, they are just half the dimensions of the box itself (for collision checking and such). Help would be great.
Did you see the HelloWorld example? How does your code differ?
Yes, actually, That's the exact sample I used. My code is all the same as the hello world example. The only difference is that I'm actually drawing the boxes (using Allegro). I'm pretty sure I did everything correctly, the only Box2d code in my main game loop is the "world.Step(arguments), and the code for getting the position and rotation of objects so that I can draw them. What wrong here?
I'm guessing you are misinterpreting the Box2D positions. The HelloWorld example uses Y up and the box position is the centroid.
I don't think I'm understanding. The cord. system I use has the coordinates origin (X = 0:Y = 0) at the top left of the screen. And all sprites origins are the top left of the image. How does the HelloWorld example have it? (I didn't understand your last post)
In all Box2D examples, Y points up. All shape positions are the centers. For example the position of a box shape is the position of the center of the box.
So box coordinate origins are at their center. Ok, but I'm still not understanding what you mean by, "Y is up".
"Y is up" means that gravity points in the negative y direction. If this is still confusing, see this: http://en.wikipedia.org/wiki/Cartesian_coordinate_system
Ok, so instead of X=0 and Y=0 at the top left of the screen, X=0 and Y=0 is at the center of screen? Or the center of the current world? And is there a way to make Box2d operate with X=0 and Y=0 at the top left of SCREEN? i.e., setup the program to do so.
This is from the FAQ:

Quote:
What are Box2D's rendering capabilites?
Box2D is only a physics engine. How you draw stuff is up to you.

Original thread: https://box2d.org/forum/viewtopic.php?t=242