| | |
| | | // position: Common.calculateMappedPosition([realRowPos[2], 0, realBayPos[3]]), |
| | | // rotationY: Math.PI / 2, |
| | | // }, |
| | | { |
| | | no: '3-10-1', |
| | | position: Common.calculateMappedPosition([realRowPos[2], 0, realBayPos[2]]), |
| | | rotationY: Math.PI / 2, |
| | | }, |
| | | { |
| | | no: '3-13-1', |
| | | position: Common.calculateMappedPosition([realRowPos[2], 0, realBayPos[1]]), |
| | | rotationY: Math.PI / 2, |
| | | }, |
| | | { |
| | | no: '3-16-1', |
| | | position: Common.calculateMappedPosition([realRowPos[2], 0, realBayPos[0]]), |
| | | rotationY: Math.PI / 2, |
| | | }, |
| | | // { |
| | | // no: '3-10-1', |
| | | // position: Common.calculateMappedPosition([realRowPos[2], 0, realBayPos[2]]), |
| | | // rotationY: Math.PI / 2, |
| | | // }, |
| | | // { |
| | | // no: '3-13-1', |
| | | // position: Common.calculateMappedPosition([realRowPos[2], 0, realBayPos[1]]), |
| | | // rotationY: Math.PI / 2, |
| | | // }, |
| | | // { |
| | | // no: '3-16-1', |
| | | // position: Common.calculateMappedPosition([realRowPos[2], 0, realBayPos[0]]), |
| | | // rotationY: Math.PI / 2, |
| | | // }, |
| | | |
| | | |
| | | ]; |
| | |
| | | } |
| | | |
| | | const getLoaderHasBox = (loaderAngle, finger1, finger2, finger3, finger4) => { |
| | | console.log(loaderAngle, finger1, finger2, finger3, finger4); |
| | | if (loaderAngle > 360 - 10 || loaderAngle < 0 + 10) { |
| | | return finger3 && finger4; |
| | | } |