| | |
| | | this.firstTime = 1; |
| | | this.stats = null; |
| | | this.goodTypes=[];//存储所有的库位类型 |
| | | this.wrkNo = 0; |
| | | |
| | | this.start = function () { |
| | | this.initMain(); |
| | |
| | | this.stats.begin(); |
| | | this.renderer.render(this.scene, this.camera); |
| | | this.stats.end(); |
| | | this.modelMove(); |
| | | // this.modelMove(); |
| | | } |
| | | this.initScene = function () { |
| | | this.scene = new THREE.Scene(); |
| | |
| | | this.queryTask = function () { |
| | | if (this.firstTime === 1) { |
| | | queryTaskCurrent(); |
| | | console.log(TaskData); |
| | | if (this.wrkNo !== TaskData.wrkNo) { |
| | | this.wrkNo = TaskData.wrkNo; |
| | | } |
| | | } |
| | | } |
| | | this.getExistedGoodType=function(state){ |
| | |
| | | }); |
| | | } |
| | | this.modelMove = function () { |
| | | |
| | | // console.log(1) |
| | | let crnBody = getArrVal(this.objects, "name", "1-body"); |
| | | console.log(crnBody.position) |
| | | } |
| | | }, |
| | | |