fix: 调整游戏地平线高度与UI、场景位置

统一修正游戏内角色控制器UI位置、地图物体Y轴偏移
调整游戏地平线基准值,修复场景显示偏移问题
This commit is contained in:
pan
2026-08-13 17:29:53 +08:00
parent d06c99e2f1
commit d54e6ce1d6
3 changed files with 26 additions and 6 deletions

View File

@@ -1398,7 +1398,7 @@
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0, "x": 0,
"y": 21.504, "y": -31.947,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -1875,7 +1875,7 @@
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0, "x": 0,
"y": 21.504, "y": -50.813,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -2352,7 +2352,7 @@
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0, "x": 0,
"y": 0, "y": -150,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -2618,6 +2618,8 @@
"__id__": 0 "__id__": 0
}, },
"fileId": "6bE0ieRMBGyYHdxvuJ03FA", "fileId": "6bE0ieRMBGyYHdxvuJ03FA",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null "nestedPrefabInstanceRoots": null
}, },
{ {
@@ -3432,6 +3434,8 @@
"__id__": 0 "__id__": 0
}, },
"fileId": "256TxMVzhHQopA08O7v8nq", "fileId": "256TxMVzhHQopA08O7v8nq",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null "nestedPrefabInstanceRoots": null
}, },
{ {
@@ -3471,6 +3475,8 @@
"__id__": 0 "__id__": 0
}, },
"fileId": "5dWwAe3IFHRJuoSicXBEs8", "fileId": "5dWwAe3IFHRJuoSicXBEs8",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null "nestedPrefabInstanceRoots": null
}, },
{ {
@@ -3710,6 +3716,8 @@
"__id__": 0 "__id__": 0
}, },
"fileId": "b9zLdCeJlE5pPiK++dLgBX", "fileId": "b9zLdCeJlE5pPiK++dLgBX",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null "nestedPrefabInstanceRoots": null
}, },
{ {
@@ -4388,6 +4396,8 @@
"__id__": 0 "__id__": 0
}, },
"fileId": "9d2p/canpFGof2O/w8JyTj", "fileId": "9d2p/canpFGof2O/w8JyTj",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null "nestedPrefabInstanceRoots": null
}, },
{ {
@@ -4427,6 +4437,8 @@
"__id__": 0 "__id__": 0
}, },
"fileId": "6bkL20JyRDOI6ycVYKl/ie", "fileId": "6bkL20JyRDOI6ycVYKl/ie",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null "nestedPrefabInstanceRoots": null
}, },
{ {
@@ -4495,6 +4507,8 @@
"__id__": 0 "__id__": 0
}, },
"fileId": "14GnCNU65BbJPIzLWE/Oiz", "fileId": "14GnCNU65BbJPIzLWE/Oiz",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null "nestedPrefabInstanceRoots": null
}, },
{ {
@@ -7363,6 +7377,8 @@
"__id__": 0 "__id__": 0
}, },
"fileId": "c4IqMKgXNExa5w4EAciRxE", "fileId": "c4IqMKgXNExa5w4EAciRxE",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null "nestedPrefabInstanceRoots": null
}, },
{ {
@@ -8893,6 +8909,8 @@
"__id__": 0 "__id__": 0
}, },
"fileId": "35iAcUUYpE8akTtTCX1ITo", "fileId": "35iAcUUYpE8akTtTCX1ITo",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null "nestedPrefabInstanceRoots": null
}, },
{ {
@@ -8932,6 +8950,8 @@
"__id__": 0 "__id__": 0
}, },
"fileId": "68Q5vEQWBINrggngtTZ7wh", "fileId": "68Q5vEQWBINrggngtTZ7wh",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null "nestedPrefabInstanceRoots": null
}, },
{ {

View File

@@ -232,7 +232,7 @@
"_top": 0, "_top": 0,
"_bottom": 546.004, "_bottom": 546.004,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_verticalCenter": 143, "_verticalCenter": -7,
"_isAbsLeft": true, "_isAbsLeft": true,
"_isAbsRight": true, "_isAbsRight": true,
"_isAbsTop": true, "_isAbsTop": true,
@@ -276,7 +276,7 @@
"value": { "value": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0, "x": 0,
"y": 783, "y": 633,
"z": 0 "z": 0
} }
}, },

View File

@@ -13,7 +13,7 @@ export enum BoxSet {
LETF_END = -360, LETF_END = -360,
RIGHT_END = 360, RIGHT_END = 360,
//游戏地平线 //游戏地平线
GAME_LINE = 160, GAME_LINE = 10,
/** 技能/装备各自独立的上限 */ /** 技能/装备各自独立的上限 */
BOX_MAX = 6, BOX_MAX = 6,
} }