Hello. I have just downloaded, compiled and run Box2D.
I have made a change to the "Hello World" project. Specifically, I changed the shape of the falling object from:
b2PolygonShape dynamicBox;
dynamicBox.SetAsBox(1.0f, 1.0f);
to
b2PolygonShape dynamicBox;
b2Vec2 vertices[3] = {b2Vec2(-1.0f, 1.0f), b2Vec2(0.0f, 0.0f), b2Vec2(1.0f, 1.0f)};
dynamicBox.Set(vertices, 3);
I expected to see some rotation when it hits the ground, but its angle remains 0.0f. What is going on here?
Thank you.
I have made a change to the "Hello World" project. Specifically, I changed the shape of the falling object from:
b2PolygonShape dynamicBox;
dynamicBox.SetAsBox(1.0f, 1.0f);
to
b2PolygonShape dynamicBox;
b2Vec2 vertices[3] = {b2Vec2(-1.0f, 1.0f), b2Vec2(0.0f, 0.0f), b2Vec2(1.0f, 1.0f)};
dynamicBox.Set(vertices, 3);
I expected to see some rotation when it hits the ground, but its angle remains 0.0f. What is going on here?
Thank you.