# How to get the intersection Point of Two Traces in Unreal Engine?

**URL:** <https://forums.unrealengine.com/t/how-to-get-the-intersection-point-of-two-traces-in-unreal-engine/2161587>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [December 1, 2024, 2:57pm UTC](https://forums.unrealengine.com/t/how-to-get-the-intersection-point-of-two-traces-in-unreal-engine/2161587 "2024-12-01T14:57:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![arifisayev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@arifisayev](https://forums.unrealengine.com/u/arifisayev)\
**Post date:** [December 1, 2024, 2:57pm UTC](https://forums.unrealengine.com/t/how-to-get-the-intersection-point-of-two-traces-in-unreal-engine/2161587/1 "2024-12-01T14:57:30Z")

</div>

Hello everyone, I need a little help. I am using 4 traces in my game. Two of them start from my main character. One trace simply moves forward from my character and hits the side of a surface. The other trace moves down at a 90 float height, 120 float distance in the negative Z direction, hitting the top of a surface. So, I get hits from two surfaces of an object (Top and Side). Now, I’m creating new traces from these hit locations and I want to get the location where these hits intersect. However, I can’t get a hit result when the traces intersect. Does anyone know a solution for this? Or is there another way to do this? My main goal is to get the corner location of a box in the scene based on the direction I’m looking in the game.

 ![Screenshot_20](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/e/8/2e860e23696b657259b73513967f618a93c57731.jpeg)

---

<div class="post-metadata">

**Author:** ![VisAgilis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/visagilis/32/891043_2.png) [@VisAgilis](https://forums.unrealengine.com/u/VisAgilis)\
**Post date:** [December 1, 2024, 3:15pm UTC](https://forums.unrealengine.com/t/how-to-get-the-intersection-point-of-two-traces-in-unreal-engine/2161587/2 "2024-12-01T15:15:23Z")

</div>

> [@arifisayev](#):
>
> However, I can’t get a hit result when the traces intersect.

Yes, there isn’t a hit result for that. They can’t detect each other. You’d need to use the intersection point math formula by using those 4 locations (the hit start & end for each trace)

---

<div class="post-metadata">

**Author:** ![arifisayev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@arifisayev](https://forums.unrealengine.com/u/arifisayev)\
**Post date:** [December 1, 2024, 3:39pm UTC](https://forums.unrealengine.com/t/how-to-get-the-intersection-point-of-two-traces-in-unreal-engine/2161587/3 "2024-12-01T15:39:52Z")

</div>

Guys I found a very simple solution. I deleted the extra two traces it created later. Now, I can get the location of the tip using only the initial two traces it created. I created a vector for each trace, naming them “side vector” and “top vector.” Then, I connected the impact point from the hit result to these vectors. After that, I linked the coordinates I needed to a separate vector (taking only the Z from the top trace and X and Y from the side trace). This way, I obtained the coordinates of the three corners. For testing, I simply connected the coordinates I got to the draw debug point.

 ![4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/c/a/5ca152c6310d89dc127ff6b4f84ff289799c08c2.jpeg)

---

<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:** [December 31, 2024, 3:40pm UTC](https://forums.unrealengine.com/t/how-to-get-the-intersection-point-of-two-traces-in-unreal-engine/2161587/4 "2024-12-31T15:40:30Z")

</div>

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