[BUG]攻撃判定エリアの不具合について / Attack Hitbox Bug Issue: Inconsistent Damage and Early Despawning/攻击判定框bug

【動画参照】
[Video Link]
【视频链接】:

///

今日、攻撃判定枠の衝突判定に不具合が発生しました。対象にダメージを与えることができる場合とできない場合があり、対象が移動中に弾丸の攻撃判定枠が対象のヒットボックス(青枠)の端を擦れると、予期せず弾丸が消滅し、対象に衝突フィードバックが与えられないことがあります。

///

Today, I encountered a bug with attack hitbox collisions. Sometimes the hitbox deals damage to the target, and sometimes it doesn’t. When the target is moving, if the bullet’s hitbox grazes the edge of the target’s blue hitbox, the bullet sometimes disappears prematurely without triggering collision feedback on the target.

///

攻击判定框bug喵,今天遇到了攻击判定框碰撞有时候可以对对象造成伤害有时候不能,对象移动时候子弹攻击框擦到对象蓝框边缘有时候会提前消除不能对对象造成碰撞反馈

I’m encountering the same issue. It seems there may be a problem with the edge collision detection.

It looks like there might be 2 issues?

  1. If standing next to another object with a hit box, there might be a miscalculation.
  2. If moving away from the bullet, the hit calculation might get misapplied.

Are you both able to reproduce the issue when there is no background object nearby and when moving towards the bullet? Just want to get a larger understanding of affected cases.

Found Bugs:

  1. Root Node Scale Property Issue: The scaling ratio of the root node’s transform (scale) causes abnormal hitbox (attack frame) detection.
  2. Attack Hitbox Disable Duration: The minimum effective duration for disabling the hitbox (detection frame) is 0.03 seconds; shorter durations fail to trigger detection.
  3. Action State Transition: When switching action states too quickly (condition: contact with attack hitbox), global database variables cannot be modified during the “injured” state. Local variables can be modified, but global database variables (regardless of language settings) cannot.

///

  1. ルートノードのスケール問題: ルートノードの Transform のスケール (scale) が異常な判定を引き起こします。
  2. 攻撃判定の無効化時間: 攻撃判定を無効にする最小有効時間は 0.03 秒です。それ以下の設定では判定が正常に機能しません。
  3. 行動状態の切り替え: 行動状態の切り替えが速すぎる場合 (条件:攻撃判定接触時)、「ダメージ」状態中にグローバル変数 (データベース変数) を変更できません。自身のローカル変数は変更可能ですが、グローバル変数 (言語設定に関係なく) は変更できません。

動画内の数値について:緑色はグローバルの HP 変数、赤色は自身の HP 変数、白色は受けたダメージを表しています。
///
Regarding the numbers in the video: Green indicates the global HP variable, red indicates the own HP variable, and white indicates the damage taken.
///
BUG2.rar (428.9 KB)
///
問題 1・2 の動画:
Video of Issues 1 & 2:

///
問題 3 の動画:
Video of Issue 3:

Thank you for the additional feedback. We have managed to reproduced the issue internally and are working on a fix now!