I have static objects objects, but when I am creating them and set the angle, they grow extraordinarily larger.
As you can see in the screenshot, all of the boxes share the same height, except for the fat box 😀
The angle is perfect, but when the angle is changed, it also changes the size of the box. Any ideas how to fix this?
Here is the code associated with the creation of my boxes:

As you can see in the screenshot, all of the boxes share the same height, except for the fat box 😀
The angle is perfect, but when the angle is changed, it also changes the size of the box. Any ideas how to fix this?
Here is the code associated with the creation of my boxes:
Code:
private function addStaticBox(x, y, wid, heig, nAngle) : b2Body {
bodyDef = new b2BodyDef();
bodyDef.position.x = x/30;
bodyDef.position.y = y/30;
bodyDef.angle = nAngle * 3.1459 / 180;
/////////////////////////////////////////////////////////////////////////////////////
boxDef = new b2PolygonDef();
boxDef.SetAsBox(wid/30/2, heig/30/2);
boxDef.density = 0.0;
boxDef.friction = 0.0;
boxDef.restitution = 0.1;
bodyDef = new b2BodyDef();
bodyDef.position.x = x/30;
bodyDef.position.y = y/30;
bodyDef.angle = nAngle * 3.1459 / 180;
/////////////////////////////////////////////////////////////////////////////////////
boxDef = new b2PolygonDef();
boxDef.SetAsBox(wid/30/2, heig/30/2);
boxDef.density = 0.0;
boxDef.friction = 0.0;
boxDef.restitution = 0.1;
