I am trying to get my player’s weapon to avoid clipping through walls, so I added a collision box around the weapon and scripted a basic overlap event in the weapon’s BP. It plays a montage animation on beginning overlap, and stops playing it when overlap ends.
It works well enough, but when the player looks at certain angles, their weapon begins to jitter and vibrate as though the animation is activating and deactivating over and over in rapid succession. Like, the animation itself is causing it to stop overlapping, then overlap again etc.
Is there any way for me to avoid this? Should I use something other than a collision mesh with an overlap event?
Googling, I saw some people talking about using a line trace, but I’m honestly not sure how to go about setting it up in this situation.
Any help would be greatly appreciated.