# Line Trace doesn't match Projectile Path

**URL:** <https://forums.unrealengine.com/t/line-trace-doesnt-match-projectile-path/1898010>\
**Category:** Blueprint\
**Tags:** unreal-engine, bug-report, editor, Blueprint, question\
**Created:** [June 10, 2024, 6:38pm UTC](https://forums.unrealengine.com/t/line-trace-doesnt-match-projectile-path/1898010 "2024-06-10T18:38:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Homeboy696969](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Homeboy696969](https://forums.unrealengine.com/u/Homeboy696969)\
**Post date:** [June 10, 2024, 6:38pm UTC](https://forums.unrealengine.com/t/line-trace-doesnt-match-projectile-path/1898010/1 "2024-06-10T18:38:38Z")

</div>

![Screenshot (77)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/d/e/1de26380180ddd90b60c2e2e89669c5c2c286c21.png)

For some reason LineTrace and FindLookAtRotation don’t give the same impact point, even when using the same start and end points.

To get the bullet to line up, BreakHitResult\> FindLookAtRotation for TraceStart to ImpactPoint.

Why wouldn’t they add an option to attach a projectile to the linetrace and be able to enable gravity?

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [June 10, 2024, 8:37pm UTC](https://forums.unrealengine.com/t/line-trace-doesnt-match-projectile-path/1898010/2 "2024-06-10T20:37:12Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/c/79c3e28a746659219f8dfe419cfa58a608c8d46c.png)

---

<div class="post-metadata">

**Author:** ![Homeboy696969](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Homeboy696969](https://forums.unrealengine.com/u/Homeboy696969)\
**Post date:** [June 11, 2024, 2:52am UTC](https://forums.unrealengine.com/t/line-trace-doesnt-match-projectile-path/1898010/3 "2024-06-11T02:52:00Z")

</div>

I did figure out a similar fix for it. My question is why doesn’t LineTrace and LookAtRotation match even when inputting the same exact start/ends and start locations for the SpawnActor function?

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [June 11, 2024, 5:53am UTC](https://forums.unrealengine.com/t/line-trace-doesnt-match-projectile-path/1898010/4 "2024-06-11T05:53:34Z")

</div>

Define Match.

---

<div class="post-metadata">

**Author:** ![Homeboy696969](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Homeboy696969](https://forums.unrealengine.com/u/Homeboy696969)\
**Post date:** [June 11, 2024, 6:10am UTC](https://forums.unrealengine.com/t/line-trace-doesnt-match-projectile-path/1898010/5 "2024-06-11T06:10:12Z")

</div>

![Screenshot (80)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/8/9/b89dd8c4a1834f7adbaf3d8e2b0334f879b61f99.png)

 ![Screenshot (83)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/6/5/c65f59e06c5b9d1c3d4e6f151d954d16b40d2135.png)  
 ![Screenshot (77)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/d/e/1de26380180ddd90b60c2e2e89669c5c2c286c21.png)

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [June 11, 2024, 7:23am UTC](https://forums.unrealengine.com/t/line-trace-doesnt-match-projectile-path/1898010/6 "2024-06-11T07:23:48Z")

</div>

Exact points of impact will never match between a projectile and a line trace. Projectiles are lerped over time. Two projectiles with the exact same spawn points and velocities will not match 100%.

Projectiles are given a Trajectory/heading, not an end location.

---

<div class="post-metadata">

**Author:** ![Homeboy696969](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Homeboy696969](https://forums.unrealengine.com/u/Homeboy696969)\
**Post date:** [June 11, 2024, 7:40am UTC](https://forums.unrealengine.com/t/line-trace-doesnt-match-projectile-path/1898010/7 "2024-06-11T07:40:39Z")

</div>

> [@Rev0verDrive](#):
>
> xact points of impact will never match between a projectile and a line trace. Projectiles are lerped over time. Two projectiles with the exact same spawn points and velocities will not match 100%.
> 
> Projectiles are given a Trajectory/heading, not an end location.

Thanks. I have decided to abandon LineTrace for bullets.  
Real bullet hit tracking is my choice for now. Hopefully there isn’t too many issues with ping

---

<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 11, 2024, 7:41am UTC](https://forums.unrealengine.com/t/line-trace-doesnt-match-projectile-path/1898010/8 "2024-07-11T07:41:12Z")

</div>

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