public BumperView(DrivableVehicle car) { _car = car; _camera = new SimpleCamera(); _camera.FieldOfView = GameConfig.FOV; _camera.FarPlaneDistance = GameConfig.DrawDistance; }
public DropCameraView(DrivableVehicle car) { _car = car; _camera = new SimpleCamera(); _camera.FieldOfView = GameConfig.FOV; _camera.FarPlaneDistance = GameConfig.DrawDistance; PositionCameraAtNode(car.Track.RoadNodes[10]); }
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); }