| | |
| | | }) |
| | | } |
| | | |
| | | // 堆垛机本体运动轨迹 |
| | | if (that.prePosition.z !== that.position.z && false) { |
| | | curves.push({ |
| | | start: false, |
| | | progress: 0, |
| | | part: 'body', |
| | | route: new Route([ |
| | | { |
| | | x: that.crnBody.position.x, |
| | | y: that.crnBody.position.y, |
| | | z: that.prePosition.z |
| | | }, |
| | | { |
| | | x: that.crnBody.position.x, |
| | | y: that.crnBody.position.y, |
| | | z: that.position.z |
| | | } |
| | | ]) |
| | | }) |
| | | } |
| | | |
| | | curves.map((value, index) => { |
| | | if (that.crnNo === 1) { |
| | | // console.log(value.part + " --> " + JSON.stringify(value.route.points)) |
| | |
| | | let point = curves[i].route.getPoint(curves[i].progress); |
| | | if ( point && point.x ) { |
| | | switch (curves[i].part) { |
| | | case 'body': |
| | | that.crnBody.position.set(point.x, point.y, point.z); |
| | | break |
| | | case 'load': |
| | | that.crnBody.position.z = point.z + zOffset - that.crnBody.userData.crnBodyWidth/2; |
| | | that.crnLoad.position.set(point.x, point.y + yOffset0, point.z + zOffset0 - that.crnLoad.userData.crnLoadWidth/2 + 5); |
| | |
| | | if (percent < 100.00) { |
| | | percent += 0.04; |
| | | // percent += 1; |
| | | speedDom.innerText = percent.toFixed(2); |
| | | // speedDom.innerText = percent.toFixed(2); |
| | | } else { |
| | | speedDom.innerText = '100.00'; |
| | | if (!hasClass(shipInfoBtn, "show")) { |