I am trying to combine a perspective camera with a box2D world using libgdx and I am having some problems getting the two to synch up. I want to do this so I can use 3D models but keep the game in a fixed plane like a 2D platformer and I will not move, angle or zoom the camera. I set the Box2D world to a fixed size, say 35x20 meters. The problem I have is calculating how much I need to move the 3D models so they synch up with the Box2D world. Lest say I move the Box2D body of a character 1 meter to the left how much should I move the 3D model then?
I tried to simply calculate pixels per meter and use that to move the 3D models. But I guess that I need to take the distance from the camera into account? So if someone have a formula or can point me in the right direction on which formula to use I would really appreciate it, thanks!