去掉物理碰撞组件,英雄的移动改由系统逻辑统一处理

This commit is contained in:
2025-02-02 16:28:19 +08:00
parent e571ae2caf
commit 00148863ad
82 changed files with 397 additions and 5831 deletions

View File

@@ -38,16 +38,10 @@
},
{
"__id__": 16
},
{
"__id__": 18
},
{
"__id__": 20
}
],
"_prefab": {
"__id__": 22
"__id__": 18
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -278,74 +272,6 @@
"__type__": "cc.CompPrefabInfo",
"fileId": "5cF3YtaNJO6arYWX/tn4cL"
},
{
"__type__": "cc.RigidBody2D",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 15
},
"enabledContactListener": true,
"bullet": true,
"awakeOnLoad": true,
"_group": 4,
"_type": 2,
"_allowSleep": false,
"_gravityScale": 0,
"_linearDamping": 0,
"_angularDamping": 0,
"_linearVelocity": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_angularVelocity": 0,
"_fixedRotation": false,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "4bdBL+TclP+79aZSabYtfK"
},
{
"__type__": "cc.BoxCollider2D",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 17
},
"tag": 8,
"_group": 4,
"_density": 1,
"_sensor": true,
"_friction": 0.2,
"_restitution": 0,
"_offset": {
"__type__": "cc.Vec2",
"x": 0,
"y": 40
},
"_size": {
"__type__": "cc.Size",
"width": 150,
"height": 200
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f70rkggRZACZKqkR8MhiBL"
},
{
"__type__": "6a7fejJxHlM5r/TS8IFF1Kq",
"_name": "",
@@ -356,7 +282,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 19
"__id__": 15
},
"_id": ""
},
@@ -374,7 +300,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 21
"__id__": 17
},
"_id": ""
},