#
luxiaotao1123
2022-01-10 550e9d184de694006bfd110a860269e939e56ce9
static/js/object/CrnTask.js
@@ -141,27 +141,6 @@
            })
        }
        // 堆垛机本体运动轨迹
        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))
@@ -189,9 +168,6 @@
                        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);