Hi, I guess I have a small problem in logical thinking:
1, The manual states that I should try to multiply every pixel coordinate with 0.01f. 100 pixels would therefore amount to 1 Meter, this means that if I have a box of 50 pixels, I can still use 0.01f as scaling factor right?
2, PolygonDef::SetAsBox in the API reads: Build vertices to represent an axis-aligned box. But which corner of the box will the given coordinates represent?
My problem is essentially that I have various different types of box definitions, (OpenGL: you translate a polygon by its middle point, how does it work with Box2D?)
and I don't get how to calculate/position the Box2D boxes so that they correlate with my actual representations.
1, The manual states that I should try to multiply every pixel coordinate with 0.01f. 100 pixels would therefore amount to 1 Meter, this means that if I have a box of 50 pixels, I can still use 0.01f as scaling factor right?
2, PolygonDef::SetAsBox in the API reads: Build vertices to represent an axis-aligned box. But which corner of the box will the given coordinates represent?
My problem is essentially that I have various different types of box definitions, (OpenGL: you translate a polygon by its middle point, how does it work with Box2D?)
and I don't get how to calculate/position the Box2D boxes so that they correlate with my actual representations.