# Why is my line trace not hitting

**URL:** <https://forums.unrealengine.com/t/why-is-my-line-trace-not-hitting/1569056>\
**Category:** Blueprint\
**Tags:** line-trace, unreal-engine, Collision, Blueprint, question, overlap-event\
**Created:** [December 28, 2023, 9:42pm UTC](https://forums.unrealengine.com/t/why-is-my-line-trace-not-hitting/1569056 "2023-12-28T21:42:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lowenfas](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lowenfas](https://forums.unrealengine.com/u/Lowenfas)\
**Post date:** [December 28, 2023, 9:42pm UTC](https://forums.unrealengine.com/t/why-is-my-line-trace-not-hitting/1569056/1 "2023-12-28T21:42:05Z")

</div>

I’m using a linetrace to see if you hit when shooting. I’m using a custom “Damage” trace channel but nothing is happening. I’ve confirmed the pawns have overlap events enabled for the Damage trace, but my Damage trace goes right through them with zero overlap events.

This here is the line trace

 ![Screen Shot 2023-12-28 at 4.28.55 PM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/7/f/57f8fab449f0011dfea481c5528603449be1d480.png)

This is the character who is supposed to be getting shot dedz. (Collision settings are on the right)

 ![Screen Shot 2023-12-28 at 4.29.50 PM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/8/1/a8198a1ed1813e776c567dc73b68a503b21d5758.png)

This dude must really be a ninja for these to all be misses.

 ![Screen Shot 2023-12-28 at 4.31.34 PM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/0/e/50ed844e5743e0a171e123117bfddcc9aa65841a.jpeg)

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [December 28, 2023, 9:46pm UTC](https://forums.unrealengine.com/t/why-is-my-line-trace-not-hitting/1569056/2 "2023-12-28T21:46:04Z")

</div>

Hey @Lowenfas!

The way traces work, they’re looking for Blocking hits. So just try changing the enemy’s reaction to the damage channel to Hit! That should solve it.

And then instead of the “On event overlap”, “Damage” with the hit object as target and “OnDamaged” on the receiver should be the one to use. The damage system in Unreal is really rather simple and efficient with lots of common options baked in! 🙂

---

<div class="post-metadata">

**Author:** ![Lowenfas](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lowenfas](https://forums.unrealengine.com/u/Lowenfas)\
**Post date:** [December 28, 2023, 11:40pm UTC](https://forums.unrealengine.com/t/why-is-my-line-trace-not-hitting/1569056/3 "2023-12-28T23:40:21Z")

</div>

WOOOOOOOW. Changing the character collision from overlap to block was all it needed. I had a feeling it was going to be something incredibly simple and stupid.

I still don’t fully understand though, because I have another attack involving a stab, which creates a sphere trace around the knife mid thrust and that works just fine. So apparently sphere traces trigger the overlaps just fine but line traces do not.

Thanks Mind-Brain. Hopefully one day me to will have good mind with me brain.

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [December 29, 2023, 2:39am UTC](https://forums.unrealengine.com/t/why-is-my-line-trace-not-hitting/1569056/4 "2023-12-29T02:39:48Z")

</div>

So the reason for that is overlap needs colliding _volumes_. The line trace is one dimensional, and it needs minimum two dimensions colliding with minimum two dimensions for it to be an overlap. 🙂

---

<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:** [January 28, 2024, 2:40am UTC](https://forums.unrealengine.com/t/why-is-my-line-trace-not-hitting/1569056/5 "2024-01-28T02:40:27Z")

</div>

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