Broken Line Trace Help?!

Hey guys, I have an Egyptian eye pillar that opens up and fires a beam. There’s a line trace to get the beam length and then the particles happen. As you’ll see in the demo video, it works fine UNTIL it is placed into the actual scene I need it in. When in that scene, some of the traces trace backwards. Not sure why.

Video: https://youtu.be/BnpfOGDjG3E

Solved it! My math was off. I had multiplied the socket location by it’s rotation and then by the trace distance instead of adding the location to the forward vector times the trace distance.

Correct math:

Incorrect math: