O'Reilly logo

LibGDX Game Development Essentials by Juwal Bose

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

LibGDX with Box2D

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:

LibGDX with Box2D

However, in our Thrust Copter project, we did not enable Box2D when we created the project. It's time to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required