box2D forces, LIBGDX, lunar lander game

Hi Guys,

I have been working on a lunar lander type game for Box2D in libGDX in java for quite some time and am running into 1 major problem:

->Mainly the co-ordinate system between libGDX and Box2D.
---> the second problem that arises from this is the application of forces to bodies and how to render them.

my question is then mainly:

Is there a way to render forces in Box2d? say for example a .showForces command or such? that renders an arrow (with direction and magnitude) and where on the body that a force is currently acting.

If not how can I do this? I am having a hard time trying to match the sprites of libGDX to the co-ordinate system of Box2D to attempt the above.

Any advice would be kindly appreciated 🙂 ,

Paul

Original thread: https://box2d.org/forum/viewtopic.php?t=10062