重新 使用碰撞来处理 抛射型技能逻辑处理

This commit is contained in:
panw
2025-03-26 11:04:58 +08:00
parent 0f9fb4e8fb
commit ae30a865c7
23 changed files with 388 additions and 1352 deletions

View File

@@ -32,10 +32,16 @@
},
{
"__id__": 12
},
{
"__id__": 14
},
{
"__id__": 16
}
],
"_prefab": {
"__id__": 14
"__id__": 18
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -130,8 +136,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
"width": 30,
"height": 30
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -216,8 +222,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
"width": 30,
"height": 30
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -277,6 +283,74 @@
"__type__": "cc.CompPrefabInfo",
"fileId": "0cIZpMAklNUpGWSkPm4J6y"
},
{
"__type__": "cc.RigidBody2D",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 15
},
"enabledContactListener": true,
"bullet": false,
"awakeOnLoad": true,
"_group": 4,
"_type": 1,
"_allowSleep": true,
"_gravityScale": 1,
"_linearDamping": 0,
"_angularDamping": 0,
"_linearVelocity": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_angularVelocity": 0,
"_fixedRotation": false,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "ccPNQAiCJDoqdJPvSfaTSM"
},
{
"__type__": "cc.BoxCollider2D",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 17
},
"tag": 0,
"_group": 4,
"_density": 1,
"_sensor": true,
"_friction": 0.2,
"_restitution": 0,
"_offset": {
"__type__": "cc.Vec2",
"x": 0.7,
"y": -0.8
},
"_size": {
"__type__": "cc.Size",
"width": 18.9,
"height": 17.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "05cKFJkU1GF6qeXylYGSZ2"
},
{
"__type__": "cc.PrefabInfo",
"root": {