Example #1
0
 public BumperView(DrivableVehicle car)
 {
     _car = car;
     _camera = new SimpleCamera();
     _camera.FieldOfView = GameConfig.FOV;
     _camera.FarPlaneDistance = GameConfig.DrawDistance;
 }
Example #2
0
 public DropCameraView(DrivableVehicle car)
 {
     _car = car;
     _camera = new SimpleCamera();
     _camera.FieldOfView = GameConfig.FOV;
     _camera.FarPlaneDistance = GameConfig.DrawDistance;
     PositionCameraAtNode(car.Track.RoadNodes[10]);
 }
Example #3
0
        public DashboardView(DrivableVehicle car)
        {
            _car = car;
            _camera = new SimpleCamera();
            _camera.FieldOfView = GameConfig.FOV;
            _camera.FarPlaneDistance = GameConfig.DrawDistance;

            var dashfile = Path.GetFileNameWithoutExtension(car.Descriptor.ModelFile) + "dh.fsh";
            var dashDescription = DashboardDescription.Descriptions.Find(a => a.Filename == dashfile);
            _dashboard = new Dashboard(car, dashDescription);
        }