LibGDX uses a thin Java wrapper over the original Box2D software that makes use of
Java Native Interface (JNI). Currently, Box2D is a separate extension that needs to be manually included. As we will need to try out different experiments as we proceed through the chapter, we can add Box2D to our existing project now. We can also create another project just to try out Box2D, in which case you just need to check the option in the gdx-setup.jar
file (refer to the following screenshot) to enable Box2D while creating your project:
However, in our Thrust Copter project, we did not enable Box2D when we created the project. It's time to ...
No credit card required