Esempio n. 1
0
 public void Initialize(ISceneSettings settings)
 {
     Root = Rules.CreateWorld(this, settings);
     DrawerFactory = new DrawerFactory(Root);
     PhysicalManager.InitializeEngine(PhysicalEngines.Farseer, Root);
     Logger = new ReplayLogger(Root, 0.1);
 }
Esempio n. 2
0
        public void Initialize(IWorld world)
        {
            World = world;
            Root = new Body();
            Root.ChildAdded += Root_ChildAdded;
            DrawerFactory = new DrawerFactory(Root);
			physicalManager = new PhysicalManager();
			physicalManager.InitializeEngine(PhysicalEngines.Farseer, Root);
            Logger = new ReplayLogger(Root, 0.1);
            World.Exit += World_Exit;
        }