Vectors Skewed Away towards Origin

I have the following pice of logic which returns the location of the player’s weapon’s muzzle, another socket further up the barrel, and where the plyer is currently aiming.

This works well for both an ADS mechanic and a hipfire one, however when I tested this on a large map away from 0,0,0 the shots were skewed. The further away from 0,0,0 I go the more the target value is skewed towards it. Any thoughts? I’m currenlty thinking this has something to do with the level of precision I’m operating with on large coordinates? This is how the values are then used.

For anyone interested the solution was the same as this old post. Line trace in wrong direction

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.