In this chapter, we created a new class called MeshRenderer, which will be used to render textured 3D objects to our scene. We created a texture-loaded class, which will be used to load the textures from the images provided. Then, we added physics to the object by adding the Bullet Physics library. We then initialized the physics world and created and added the rigid body to the mesh renderer by adding the body itself to the world, causing the rendered object to be affected by physics.
In the next chapter, we will add a gameplay loop, as well as scoring and text rendering to display the score on the viewport. We will also add lighting to our world.