#
luxiaotao1123
2024-10-22 443b9b204ec2f09f6f0b412f0faabf12fa4cd9a8
#
2个文件已修改
10 ■■■■ 已修改文件
zy-acs-flow/src/map/player.js 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/map/tool.js 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/map/player.js
@@ -376,9 +376,10 @@
    }
    startupTicker = () => {
        this.app.ticker.add((delta) => {
        this.tweedle = (delta) => {
            TWEEDLE.Group.shared.update();
        });
        }
        this.app.ticker.add(this.tweedle);
    }
    resize = (width, height) => {
@@ -386,6 +387,8 @@
    }
    destroy = () => {
        TWEEDLE.Group.shared.removeAll();
        this.app.ticker.remove(this.tweedle);
        this.app.destroy(true, { children: true });
    }
zy-acs-flow/src/map/tool.js
@@ -555,6 +555,9 @@
    // diff
    let rotationDifference = targetRotation - currentRotation;
    if (rotationDifference === 0) {
        return;
    }
    rotationDifference = ((rotationDifference + Math.PI) % (2 * Math.PI)) - Math.PI;
    // destination