Hello this is my first post and let me say I think Box2D is awesome (even though I don't know how to use it yet lol)
This is another Pixel To Meter related question.
For what I have understand you have to scale pixel to meters to match your visual representation. lets say 1 meter equals 50 pixels
according to this http://box2d.org/2011/12/pixels/.
my problem is the actual 'screen position' of the objects. not the scale
If I have a box that is 2x2mts in size (100x100 pixels). at (0,4) in box2D World how do I translate that to x,y position of my screen... considering
that Y axis is fliped?
I've seen A library called PBox2d that uses a PApplet.map function to map coordinates from world space to screen space it's a wrapper for the java port of box2d... and since I'm not an OpenGL guy I dont quite understand many functions from the testbed. I'm trying to get Box2D to work using D3DXSprite an directx enviroment.
thanks in advance for any help
This is another Pixel To Meter related question.
For what I have understand you have to scale pixel to meters to match your visual representation. lets say 1 meter equals 50 pixels
according to this http://box2d.org/2011/12/pixels/.
my problem is the actual 'screen position' of the objects. not the scale
If I have a box that is 2x2mts in size (100x100 pixels). at (0,4) in box2D World how do I translate that to x,y position of my screen... considering
that Y axis is fliped?
I've seen A library called PBox2d that uses a PApplet.map function to map coordinates from world space to screen space it's a wrapper for the java port of box2d... and since I'm not an OpenGL guy I dont quite understand many functions from the testbed. I'm trying to get Box2D to work using D3DXSprite an directx enviroment.
thanks in advance for any help