请不要单独购买,在终章会放出静态文件,目前只是放出代码
import {Constant} from ‘./Constant’;
import {Compute} from ‘./Compute’;
import {Imoca} from ‘./Imoca’;
import {GribsToFullVertexShader} from ‘./GribsToFullVertexShader’;
import {CameraLight} from ‘./CameraLight’;
import {Loader} from ‘./Loader’;
import {RankGui} from ‘./RankGui’;
import {CourseGui} from ‘./CourseGui_tools’;
exportclassRace{
constructor(y, J) {
let s = this;
this.scene = y;
this.cbEnd = J;
this.interval = 2;
this.snapCamTofirst = true;
this.boatsPosition = new Array();
this.boatsRank = new Array();
this.boatsDisToGoal = new Array();
this.isplaying = true;
this.skipperName = [];
this.isAbdOrDsq = false;
this._followCam = function (z, i, C, B) {
return s.followCam(z, i, C, B)
};
this.environment = CameraLight.getInstance(y);
this._raceIsOver = function () {
return s.raceIsover()
};
this.gribsToFullVertexShader = new GribsToFullVertexShader(this.scene, 6 * this.interval);
this.gribsToFullVertexShader.startGribs();
this.parseRaceData();
this.createImocas();
BabylonJS + Vue 构建 风场场景 (十九) - 小专栏