BabylonJS + Vue 构建 风场场景 (十九)
  i5s3UMKbwAVb 2023年12月10日 43 0


在终章会放出静态文件,目前只是放出代码

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 构建 风场场景 (十九) - 小专栏

【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年12月10日 0

暂无评论

推荐阅读
  gYl4rku9YpWY   2024年05月17日   57   0   0 Vue
  f18CFixvrKz8   2024年05月20日   87   0   0 JavaScript
  fxrR9b8fJ5Wh   2024年05月17日   50   0   0 JavaScript
  onf2Mh1AWJAW   2024年05月17日   57   0   0 Vue
  3A8RnFxQCDqM   2024年05月17日   54   0   0 Vue
i5s3UMKbwAVb