#
luxiaotao1123
2024-05-08 7c7e759a7c20da497365c2ed654649558618692f
#
1个文件已修改
5 ■■■■■ 已修改文件
src/components/agv.jsx 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/agv.jsx
@@ -13,6 +13,10 @@
    REAL_COMPARE_MAP_OFFSET_Z,
} from '../config/setting'
const getCorrectForkDis = (loaderAngle, forkDis) => {
}
const Agv = (props) => {
    const { agvNo, position, trayList, hasBox } = props;
    const theta = -props.theta;
@@ -81,6 +85,7 @@
        const loaderAbsoluteAngle = (theta + loaderTheta) % 360;
        if (loaderAngle !== loaderAbsoluteAngle && props.loaderTheta !== null) {
            const targetTheta = Common.normalizeAngle(loaderAbsoluteAngle - loaderAngle) + loaderAngle;
            console.log(targetTheta);
            new TWEEN.Tween({ value: loaderAngle })
                .to({ value: targetTheta }, INTERVAL_TIME)
                .easing(TWEEN.Easing.Linear.None)