# Vectors Skewed Away towards Origin

**URL:** <https://forums.unrealengine.com/t/vectors-skewed-away-towards-origin/1889282>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [June 4, 2024, 3:09pm UTC](https://forums.unrealengine.com/t/vectors-skewed-away-towards-origin/1889282 "2024-06-04T15:09:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cowtickle](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cowtickle/32/761288_2.png) [@Cowtickle](https://forums.unrealengine.com/u/Cowtickle)\
**Post date:** [June 4, 2024, 3:09pm UTC](https://forums.unrealengine.com/t/vectors-skewed-away-towards-origin/1889282/1 "2024-06-04T15:09:58Z")

</div>

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.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/a/a0a8f635ae38165c651a0f597b9f3de6acb537db.png)

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.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/2/a/42a3d6de6eba5c4b5b453b2d7353a7a4732d8145.png)

---

<div class="post-metadata">

**Author:** ![Cowtickle](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cowtickle/32/761288_2.png) [@Cowtickle](https://forums.unrealengine.com/u/Cowtickle)\
**Post date:** [June 7, 2024, 12:50pm UTC](https://forums.unrealengine.com/t/vectors-skewed-away-towards-origin/1889282/2 "2024-06-07T12:50:24Z")

</div>

For anyone interested the solution was the same as this old post. [Line trace in wrong direction](https://forums.unrealengine.com/t/line-trace-in-wrong-direction/440358)

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [July 7, 2024, 12:50pm UTC](https://forums.unrealengine.com/t/vectors-skewed-away-towards-origin/1889282/3 "2024-07-07T12:50:39Z")

</div>

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