[#12821] Foreshadow has its particle for piercing a unit displaced from the beam
自动翻译暂时不可用
本帖暂时展示 GitHub 原始内容。
Platforms
Android
Build
160.7
Issue
When a Foreshadow fires at a unit and pierces it, a bronze-coloured particle is created to indicate that the shot hit the unit. However, the particle is spawned at the centre of the unit's hitbox and not at the position of the hit. With large hitboxes, this causes the particle to not intersect with the Foreshadow's shot at all:
<img width="540" height="1200" alt="Image" src="https://github.com/user-attachments/assets/d5c555f7-606f-4dfd-acc8-cac2ce1bd795" />
After a bit of testing, I have found that Omura, being a unit that also has a railgun, generates the same issue:
<img width="540" height="1200" alt="Image" src="https://github.com/user-attachments/assets/d0e4c422-2c37-4c8e-834b-0e2217779290" />
Thus, it is likely that the issue is caused by a bug in the railgun particle code, and switching the particle spawn from target unit's hitbox centre to place of hit will probably solve it.
Steps to reproduce
Spawn a dummy with hitbox size 20 (any big size works)
Put a Foreshadow diagonally below it
Shoot like in image
╔═════╗ <-- shoot here
| |
| |
╚═════╝
▓ <-- Foreshadow hereMods used
None
Save file
testmap.zip
The setup is at the bottom right of the map, the hitbox angle is shown with small copper walls
(Crash) logs
No response
Submission
I have updated to the latest release (https://github.com/Anuken/Mindustry/releases) to make sure my issue has not been fixed.
I have searched the closed and open issues to make sure that this problem has not already been reported.
I am not using Foo's Client.
This issue occurs with no mods enabled.
I have attached a valid save file.
由 MDT GitHub 同步机器人自动同步。