Monday, May 21, 2012

Relation between dimensions of a body and pixels in box2d iphone

Could anyone tell me about the relation between the dimensions of a body and number of pixels(in box2d). How many pixels contributes to one meter length?
To be more specific, I'm using the below line of code in my program



polygon_body.SetAsBox(1, 1);



In this code what are the parameters of SetASBox. I mean whether it is a pixel value or some other units.





No comments:

Post a Comment