box2D forces, LIBGDX, lunar lander game

Discuss issues specific the Java port of Box2D
PaulC
Posts: 2
Joined: Sat Jul 04, 2015 9:29 pm

box2D forces, LIBGDX, lunar lander game

Postby PaulC » Sat Jul 04, 2015 10:03 pm

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

Return to “Java”



Who is online

Users browsing this forum: Google [Bot] and 3 guests