public LocalGame()
        {
            simulators = new List <ISimulator>();

            game = new GraphicsWrapper();

            game.InitDirectX();

            var container = new DataWrapper(Rhino.Mocks.MockRepository.GenerateMock <ITraceLogger>());

            physX = new PhysicsWrapper();
            physX.Initialize();
            //PhysicsDebugRenderer debugRenderer =
            //    new PhysicsDebugRenderer(game, engine.Scene);

            //game.AddXNAObject(debugRenderer);

            //var boxDesc = new BoxShapeDescription();
            //boxDesc.Dimensions = new Vector3(100, 1, 100);
            //boxDesc.LocalPosition = Vector3.Up * -1;
            //var actorDesc = new ActorDescription(boxDesc);

            //engine.Scene.CreateActor(actorDesc);



            game.GameLoopEvent += delegate
            {
                foreach (var sim in simulators)
                {
                    sim.Simulate();
                }

                container.ClearDirty();
                physX.Update(game.Elapsed);
            };


            setTWGlobals(container);
        }