In a shooting range, there are targets where the closer you hit to the center, the more points you earn.
I have a similar model in UE5.4 and wanted to adapt this mechanic to my game. The closer you hit to the center, the more points you earn.
I managed to get this mechanic working well, but I’m having a small problem. Whenever I shoot at the boundary between two colliders, both point values register. I’ve tried to make it so only the first collider that the projectile hits registers before the bullet falls due to impact (which works most of the time), but when the colliders are hit ‘simultaneously,’ both values still get registered.
Any ideas on how to fix this?
(I know my blueprint is messy, but it’s what my UE5 noob brain could come up with, and it kind of works. If there’s any suggestion to also fix that and also reduce the amount of colliders I would appreciate it)
The code is basically the same (exept I made the OnHit be a box because the dimensions of the target are very goofy) but the vertical scoring is the same all around.
What clockwork suggest about measuring distance from the bullseye would be the best way to solve this id think. Placing one hit box for the entire target and one tiny box at the bullseye for a location holder. Calling “distance” on hit and using an equation to calculate points based on distance from bullseye