Hi. Thanks. That’s fixed the problem with the line going into the air. Seems like the problem is almost solved, except the line is now coming out of the left side of the gun, other than that, it seems to be fine. So it looks like something needs to be rotated 90 degrees?
Yes, I forgot to mention that, you may want to look(and change) the rotation value of the ‘MuzzleFlash’ socket(In the skeleton you created it) to make sure its forward vector points forward.
I tried changing the MuzzleFlash relative rotation in the rifle skeleton, it didn’t alter the line at all. I even tried random numbers, it didn’t move at all. Any ideas?
The last time I had a similar problem with a socket(changing its rotation on the skeleton did not change the value in GetSocketRotation->GetForwardVector) the problem was the name of the socket, so one idea I have right now is just to check if the socket name is exactly ‘MuzzleFlash’
I triple checked all references to MuzzleFlash and they are all spelled correctly. I’m not sure what could be the problem. Is there a “hacky” way of simply rotating the line 90 degrees?
I usually create an arrow component and attach that to the socket, then i use the transform of the arrow to determine the linetrace orientation. That way i dont have to worry about sockets to much (cause im not an animator ive got little idea how to use that stuff lol).