feat(player): 优化角色移动方向更新机制
改进了角色在寻路移动过程中的方向判断算法,通过聚合未来路径节点的方向信息来减少转向突变,提升移动动画的流畅性。同时调整了碰撞体参数和场景布局以优化游戏体验。
This commit is contained in:
@@ -332,8 +332,8 @@
|
||||
"_prefab": null,
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -44.282,
|
||||
"y": -755.631,
|
||||
"x": -51.831,
|
||||
"y": -759.406,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
@@ -602,7 +602,7 @@
|
||||
"a": 255
|
||||
},
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "1c7b5663-daeb-4a52-970f-2c530866798f@f9941",
|
||||
"__uuid__": "9ff0a243-0244-4517-9cd3-b95fd18ce759@f9941",
|
||||
"__expectedType__": "cc.SpriteFrame"
|
||||
},
|
||||
"_type": 0,
|
||||
@@ -1468,13 +1468,13 @@
|
||||
"_restitution": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"x": -0.1,
|
||||
"y": 5
|
||||
},
|
||||
"_size": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 61.4,
|
||||
"height": 129.1
|
||||
"width": 55.1,
|
||||
"height": 114
|
||||
},
|
||||
"_id": "634GiEUhBB8Z1aGzkT6Zyd"
|
||||
},
|
||||
@@ -3591,13 +3591,13 @@
|
||||
"_restitution": 0,
|
||||
"_offset": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 6.4,
|
||||
"y": 3.7
|
||||
"x": 1.7,
|
||||
"y": -1.2
|
||||
},
|
||||
"_size": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 108,
|
||||
"height": 175
|
||||
"width": 101,
|
||||
"height": 147.1
|
||||
},
|
||||
"_id": "cdIXFZyqRL66Jq6KOCWAZ6"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user