Thanks for the link to the video. But that’s not quite it.
The beam works correctly until I start moving the weapon up and down quickly. It turns out I have the beam working like a whip, and it should go straight all the time, no matter how fast I move it on any axis. Here’s a screenshot to understand more what I mean