refactor(skill): 优化技能碰撞检测逻辑并移除重复命中检查
- 移除hitTargets集合及相关重复命中检查逻辑 - 改进碰撞检测日志输出,增加安全性检查 - 清理注释掉的旧攻击逻辑代码 - 在reset方法中添加碰撞器事件解绑
This commit is contained in:
@@ -996,7 +996,7 @@
|
||||
"__id__": 62
|
||||
},
|
||||
"tag": 0,
|
||||
"_group": 4,
|
||||
"_group": 2,
|
||||
"_density": 1,
|
||||
"_sensor": true,
|
||||
"_friction": 0.2,
|
||||
|
||||
@@ -996,9 +996,9 @@
|
||||
"__id__": 62
|
||||
},
|
||||
"tag": 0,
|
||||
"_group": 4,
|
||||
"_group": 2,
|
||||
"_density": 1,
|
||||
"_sensor": true,
|
||||
"_sensor": false,
|
||||
"_friction": 0.2,
|
||||
"_restitution": 0,
|
||||
"_offset": {
|
||||
|
||||
@@ -301,7 +301,7 @@
|
||||
"bullet": false,
|
||||
"awakeOnLoad": true,
|
||||
"_group": 1,
|
||||
"_type": 2,
|
||||
"_type": 1,
|
||||
"_allowSleep": false,
|
||||
"_gravityScale": 1,
|
||||
"_linearDamping": 0,
|
||||
|
||||
@@ -513,7 +513,7 @@
|
||||
"tag": 0,
|
||||
"_group": 1,
|
||||
"_density": 1,
|
||||
"_sensor": true,
|
||||
"_sensor": false,
|
||||
"_friction": 0.2,
|
||||
"_restitution": 0,
|
||||
"_offset": {
|
||||
|
||||
@@ -304,8 +304,8 @@
|
||||
"bullet": false,
|
||||
"awakeOnLoad": true,
|
||||
"_group": 1,
|
||||
"_type": 2,
|
||||
"_allowSleep": true,
|
||||
"_type": 1,
|
||||
"_allowSleep": false,
|
||||
"_gravityScale": 1,
|
||||
"_linearDamping": 0,
|
||||
"_angularDamping": 0,
|
||||
|
||||
Reference in New Issue
Block a user