Hello, I'm trying to make a raycast from a gun hit the center of the screen, but it is firing in seemingly random directions for some reason. This is in the gun, in an FSM called "Get Screen Center", State 1:
This then flows into State 2 which just has Next Frame Event back into State 1. ScreenCenterVector is global, by the way.
Then my raycast does this in another FSM on the same object called "Shooting":
Every time I hit play, the direction is different and I'm not sure why. I think I may be doing something wrong. Any help is greatly appreciated!