Kotlin LibGDX/KTX RPG Tutorial - Part 08 (Box2D)
This is a tutorial series about game development using Kotlin, LibGDX with LibKTX extensions.
We are developing a small 2D adventure RPG using different technologies like Box2D, GdxAI, Entity Component System or Tiled.
The full source code of the tutorial can be found on github: https://github.com/Quillraven/MysticWoods
Part 08 - Box2D:
In this part we are going to learn how to add a physic engine (Box2D) to our game. We will create a physic world, bodies and fixtures and we will align them with our images to render them correctly.
Link to "Fix your timestep" article: https://gafferongames.com/post/fix_your_timestep/
Link to Box2D documentation: https://www.iforce2d.net/b2dtut/
Chapters:
00:00 - Box2D World
09:10 - PhysicComponent with Body
21:30 - Fixtures
28:50 - Physic ComponentListener
31:40 - PhysicSystem
42:56 - Fixed timestep
45:42 - Align images with physic bodies
50:58 - Result
51:27 - DebugSystem
58:32 - Recap