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 CVARCEngineCamera(Body body, DrawerFactory factory, RobotCameraSettings settings)
 {
     Settings = settings;
     this.robot = body;
     Angle viewAngle = Settings.ViewAngle;
     _camera = new FirstPersonCamera(this.robot, Settings.Location,
                                     viewAngle, DefaultWidth / (double)DefaultHeight);
     _drawer = new OffscreenDirectXDrawer(factory.GetDirectXScene(), DefaultWidth,
                                          DefaultHeight);
 }
Esempio n. 3
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;
        }