I’m adding collision detection with terrain to my game.
So far I have one custom AppState and would like to add the whole moving part to a custom Control class.
This is where I’m lost since BulletPhysics manager is an AppState on it’s own and then there are the Controls RigidBodyControl and CharacterControl.
So the code supplied in Hello Collision should be separated in my custom AppState and my custom Control but I don’t get which parts go where.
Can someone explain this to me please?