LibGDX & Tiled RPG Tutorial - #09 Box2D
This video is part of a tutorial series covering the most important aspects of LibGDX and Tiled to create any 2D game (with focus on RPG).
Github repository of final code: https://github.com/Quillraven/mystictutorial
iforce2d doku: https://www.iforce2d.net/b2dtut/
Ghost vertices: https://www.iforce2d.net/b2dtut/ghost-vertices
Chapters:
00:00 - Goal of this part
01:32 - Introduction to Box2D
04:44 - Adding the World to the GameScreen
11:38 - Implementing the PhysicSystem
12:35 - Fixed timestep
17:20 - Interpolation
23:02 - Implementing the Physic component
23:49 - Adding the interpolation code
26:37 - Removing physic bodies
31:22 - Implementing the PhysicDebugRenderSystem
34:21 - Adding static collision objects
36:32 - Adding loadTileConsumer to TiledService
41:00 - Adding onLoadTile to TiledAshleyConfigurator
45:10 - Implementing the createBody method
51:35 - Adding the TiledPhysics class for fixture creation
1:04:10 - Testing the static bodies
1:05:31 - The complete TiledPhysics class
1:08:10 - Adding dynamic bodies
1:15:36 - Ghost vertices issue
1:18:20 - Updating the MoveSystem
1:21:30 - Creating Physic components
1:22:00 - Testing the dynamic bodies