feat: 寻路优化

This commit is contained in:
richarjiang
2025-10-10 14:40:28 +08:00
parent dbdec71d0d
commit 455cca40b0
5 changed files with 743 additions and 523 deletions

View File

@@ -1472,7 +1472,7 @@
"_enabled": true,
"__prefab": null,
"tag": 0,
"_group": 1,
"_group": 2,
"_density": 1,
"_sensor": false,
"_friction": 0.2,
@@ -1912,8 +1912,6 @@
"moveSpeed": 300,
"mapWidth": 1080,
"mapHeight": 1920,
"attackPreferredDistance": 220,
"attackDistanceTolerance": 10,
"_id": "c1AuAU3IlKnLOzgk9vsBr4"
},
{
@@ -3696,7 +3694,7 @@
"_enabled": true,
"__prefab": null,
"tag": 0,
"_group": 1,
"_group": 4,
"_density": 1,
"_sensor": false,
"_friction": 0.2,
@@ -3896,7 +3894,7 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 4.172,
"x": -4.172,
"y": 1.768,
"z": 2.116
},
@@ -4330,20 +4328,20 @@
"_enabled": true,
"__prefab": null,
"tag": 0,
"_group": 1,
"_group": 4,
"_density": 1,
"_sensor": false,
"_friction": 0.2,
"_restitution": 0,
"_offset": {
"__type__": "cc.Vec2",
"x": -16.1,
"y": 7.4
"x": -11.1,
"y": -0.2
},
"_size": {
"__type__": "cc.Size",
"width": 97.4,
"height": 121.5
"width": 86.2,
"height": 110.3
},
"_id": "3ca3euVMhBkrOMELnKR9Zg"
},
@@ -4964,20 +4962,20 @@
"_enabled": true,
"__prefab": null,
"tag": 0,
"_group": 1,
"_group": 4,
"_density": 1,
"_sensor": false,
"_friction": 0.2,
"_restitution": 0,
"_offset": {
"__type__": "cc.Vec2",
"x": 2.3,
"y": -0.3
"x": 1.7,
"y": -3.3
},
"_size": {
"__type__": "cc.Size",
"width": 74.8,
"height": 132
"width": 45.7,
"height": 119.5
},
"_id": "efpC9N9EpG+r7WSMK95lgW"
},
@@ -5371,20 +5369,20 @@
"_enabled": true,
"__prefab": null,
"tag": 0,
"_group": 1,
"_group": 4,
"_density": 1,
"_sensor": false,
"_friction": 0.2,
"_restitution": 0,
"_offset": {
"__type__": "cc.Vec2",
"x": 1.3,
"y": 7.5
"x": 6,
"y": 3.2
},
"_size": {
"__type__": "cc.Size",
"width": 88.9,
"height": 96.6
"width": 73.1,
"height": 65.6
},
"_id": "3dz7NavQFBMZ60R0LoZHEP"
},
@@ -5778,7 +5776,7 @@
"_enabled": true,
"__prefab": null,
"tag": 0,
"_group": 1,
"_group": 4,
"_density": 1,
"_sensor": false,
"_friction": 0.2,
@@ -6412,7 +6410,7 @@
"_enabled": true,
"__prefab": null,
"tag": 0,
"_group": 1,
"_group": 4,
"_density": 1,
"_sensor": false,
"_friction": 0.2,
@@ -6612,7 +6610,7 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 3.256,
"x": -3.256,
"y": 1.763,
"z": 1.763
},
@@ -7046,7 +7044,7 @@
"_enabled": true,
"__prefab": null,
"tag": 0,
"_group": 1,
"_group": 4,
"_density": 1,
"_sensor": false,
"_friction": 0.2,
@@ -7246,7 +7244,7 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1.36,
"x": 1.86,
"y": 0.822,
"z": 1.154
},
@@ -7680,7 +7678,7 @@
"_enabled": true,
"__prefab": null,
"tag": 0,
"_group": 1,
"_group": 4,
"_density": 1,
"_sensor": false,
"_friction": 0.2,
@@ -8314,7 +8312,7 @@
"_enabled": true,
"__prefab": null,
"tag": 0,
"_group": 1,
"_group": 4,
"_density": 1,
"_sensor": false,
"_friction": 0.2,