# \#linetrace

**URL:** https://forums.unrealengine.com/tag/linetrace/924.md

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

---

## [How to replicate interaction?](https://forums.unrealengine.com/t/how-to-replicate-interaction/2696610)

<div class="topic-metadata">

**Author:** [@Sucram237](https://forums.unrealengine.com/u/Sucram237)\
**Replies:** 15\
**Last updated:** [February 7, 2026, 11:03pm UTC](https://forums.unrealengine.com/t/how-to-replicate-interaction/2696610 "2026-02-07T23:03:14Z")

</div>

I’ve been working on a multiplayer project for a while now with knowledge that I’ve just been getting from forums and tutorials, so I’m quite the novice. I currently am using a method for this that I got from another us…

---

## [Help With Line trace math](https://forums.unrealengine.com/t/help-with-line-trace-math/2687870)

<div class="topic-metadata">

**Author:** [@teradore](https://forums.unrealengine.com/u/teradore)\
**Replies:** 3\
**Last updated:** [January 2, 2026, 4:00am UTC](https://forums.unrealengine.com/t/help-with-line-trace-math/2687870 "2026-01-02T04:00:36Z")

</div>

hello! so I’m working on trying to add line traces that measure things Infront of the camera in an array, when I start the game the rotation of the vector is correct, however I need them to stay in line relative to the c…

---

## [Batched line traces ](https://forums.unrealengine.com/t/batched-line-traces/2659492)

<div class="topic-metadata">

**Author:** [@Lorenord](https://forums.unrealengine.com/u/Lorenord)\
**Replies:** 1\
**Last updated:** [October 3, 2025, 2:28pm UTC](https://forums.unrealengine.com/t/batched-line-traces/2659492 "2025-10-03T14:28:04Z")

</div>

Is it possible to run several line traces (as in UWorld::LineTraceSingleByChannel) in batch? I’m looking for something similar to Unity’s API function RaycastCommand.ScheduleBatch. I looked into both the low level and h…

---

## [Linetrace inside of mesh](https://forums.unrealengine.com/t/linetrace-inside-of-mesh/2394040)

<div class="topic-metadata">

**Author:** [@Popy\_Project](https://forums.unrealengine.com/u/Popy_Project)\
**Replies:** 3\
**Last updated:** [March 18, 2025, 4:16am UTC](https://forums.unrealengine.com/t/linetrace-inside-of-mesh/2394040 "2025-03-18T04:16:39Z")

</div>

Hello, I’m trying to do something that seems simple – I want to generate X points at a distance of Y around a model (from its outer edges) evenly. However, I ran into the issue that LineTrace doesn’t work from inside t…

---

## [Overlap vs Linetrace with tick](https://forums.unrealengine.com/t/overlap-vs-linetrace-with-tick/2031035)

<div class="topic-metadata">

**Author:** [@turbotanaka](https://forums.unrealengine.com/u/turbotanaka)\
**Replies:** 9\
**Last updated:** [September 22, 2024, 8:41am UTC](https://forums.unrealengine.com/t/overlap-vs-linetrace-with-tick/2031035 "2024-09-22T08:41:30Z")

</div>

I need to measure the velocity of the projectile beforehand in order to measure its impact speed. So, i am considering either preparing a collision for overlap detection and measuring the speed before the collision, or …

---

## [Line tracing no longer works for character](https://forums.unrealengine.com/t/line-tracing-no-longer-works-for-character/1989968)

<div class="topic-metadata">

**Author:** [@asbe](https://forums.unrealengine.com/u/asbe)\
**Replies:** 0\
**Last updated:** [August 24, 2024, 10:46am UTC](https://forums.unrealengine.com/t/line-tracing-no-longer-works-for-character/1989968 "2024-08-24T10:46:29Z")

</div>

Hi, I made 2 changes before noticing this bug. I cannot be sure of the reason. I replaced the character is the one from ALS-Refactored project and used my own character mesh. I upgraded the engine to 5.4.3. I believe …

---

## [How to get socket forward vector?](https://forums.unrealengine.com/t/how-to-get-socket-forward-vector/324481)

<div class="topic-metadata">

**Author:** [@zip](https://forums.unrealengine.com/u/zip)\
**Replies:** 6\
**Last updated:** [June 10, 2024, 9:28am UTC](https://forums.unrealengine.com/t/how-to-get-socket-forward-vector/324481 "2024-06-10T09:28:22Z")

</div>

Hi. don’t know how to get forward vector(x axis) for socket(it set it at my gun muzzle flash bone) i want do single line trace from socket but don’t know how do that without forward vector any suggestion?

---

## [Does not read different physical materials from the same mesh. Just One](https://forums.unrealengine.com/t/does-not-read-different-physical-materials-from-the-same-mesh-just-one/1612217)

<div class="topic-metadata">

**Author:** [@MikelKram](https://forums.unrealengine.com/u/MikelKram)\
**Replies:** 3\
**Last updated:** [January 26, 2024, 12:00pm UTC](https://forums.unrealengine.com/t/does-not-read-different-physical-materials-from-the-same-mesh-just-one/1612217 "2024-01-26T12:00:24Z")

</div>

I found a similar topic here, they wrote that enabling “Trace Complex” would help, but it didn’t help me.

---

## [Line Trace 360 around mesh](https://forums.unrealengine.com/t/line-trace-360-around-mesh/1626160)

<div class="topic-metadata">

**Author:** [@XxpiingyxX](https://forums.unrealengine.com/u/XxpiingyxX)\
**Replies:** 13\
**Last updated:** [January 25, 2024, 11:02am UTC](https://forums.unrealengine.com/t/line-trace-360-around-mesh/1626160 "2024-01-25T11:02:36Z")

</div>

Like the title says, I would like to line trace 360 degrees around a mesh. I am sorry for any confusion this might cause you, but I have rewritten this question a lot of times now and I think I have made myself more and…

---

## [How to prevent hitscan guns linetrace from hitting the minimap volume trigger?](https://forums.unrealengine.com/t/how-to-prevent-hitscan-guns-linetrace-from-hitting-the-minimap-volume-trigger/1493520)

<div class="topic-metadata">

**Author:** [@DiliupG](https://forums.unrealengine.com/u/DiliupG)\
**Replies:** 6\
**Last updated:** [December 6, 2023, 2:48pm UTC](https://forums.unrealengine.com/t/how-to-prevent-hitscan-guns-linetrace-from-hitting-the-minimap-volume-trigger/1493520 "2023-12-06T14:48:53Z")

</div>

Several of my guns use line trace. When I shoot these guns, the line trace hits the Minimap Volume Trigger, which detects the player and NPCs in the world. I am using LinetraceForObjects. If I remove the minimap, everyth…

---

## [Raycast with LineTraceSingle Returns 0 Distance](https://forums.unrealengine.com/t/raycast-with-linetracesingle-returns-0-distance/1339459)

<div class="topic-metadata">

**Author:** [@NightmareGames](https://forums.unrealengine.com/u/NightmareGames)\
**Replies:** 4\
**Last updated:** [October 22, 2023, 10:12pm UTC](https://forums.unrealengine.com/t/raycast-with-linetracesingle-returns-0-distance/1339459 "2023-10-22T22:12:45Z")

</div>

I’m attempting a raycast to find a point of collision, and I’m using LineTraceSingle(). UWorld\* const world = GetWorld(); const TArray\<AActor\*\> actors\_to\_ignore; FHitResult hit; FLinearColor line\_color = FLinearColor(0,…

---

## [LineTraceSingleByChannel didn't check AI Character for outhit](https://forums.unrealengine.com/t/linetracesinglebychannel-didnt-check-ai-character-for-outhit/1303205)

<div class="topic-metadata">

**Author:** [@606014](https://forums.unrealengine.com/u/606014)\
**Replies:** 0\
**Last updated:** [September 19, 2023, 11:15am UTC](https://forums.unrealengine.com/t/linetracesinglebychannel-didnt-check-ai-character-for-outhit/1303205 "2023-09-19T11:15:11Z")

</div>

Hello, I’m developing a FPS game that shoots with a hitscan technique based on LineTrace. If the first factor hit through LineTrace is AI, I want to halve the HP of AI, but the factor is never detected. Instead, eleme…

---

## [how can i make pick up using line trace (use c++)?](https://forums.unrealengine.com/t/how-can-i-make-pick-up-using-line-trace-use-c/1218548)

<div class="topic-metadata">

**Author:** [@sa1lim.RAM](https://forums.unrealengine.com/u/sa1lim.RAM)\
**Replies:** 0\
**Last updated:** [July 3, 2023, 8:47pm UTC](https://forums.unrealengine.com/t/how-can-i-make-pick-up-using-line-trace-use-c/1218548 "2023-07-03T20:47:45Z")

</div>

have a problem. In topic its threme

---

## [Better cast to multiple actors?](https://forums.unrealengine.com/t/better-cast-to-multiple-actors/456401)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_ffdf71301](https://forums.unrealengine.com/u/anonymous_user_ffdf71301)\
**Replies:** 11\
**Last updated:** [June 6, 2023, 11:37am UTC](https://forums.unrealengine.com/t/better-cast-to-multiple-actors/456401 "2023-06-06T11:37:05Z")

</div>

Hey guys, I have this line trace you activate with the E key. It basically serves as a general purpose interaction (open door, pickup object, push button, pull switch… etc). It simply traces a linetrace, hits an acto…

---

## [Linetrace not properly syncing in Multiplayer](https://forums.unrealengine.com/t/linetrace-not-properly-syncing-in-multiplayer/490766)

<div class="topic-metadata">

**Author:** [@J0gurt1337](https://forums.unrealengine.com/u/J0gurt1337)\
**Replies:** 2\
**Last updated:** [April 19, 2023, 1:02am UTC](https://forums.unrealengine.com/t/linetrace-not-properly-syncing-in-multiplayer/490766 "2023-04-19T01:02:50Z")

</div>

Hi all, I´ve been stucked with a linetrace replication problem in UE 4.26. I started with the FirstPerson Template and added the 3rd Person character Mesh and Camera. The Camera is attached to the Parent “Head” to get…

---

## [LineTrace doest copy camera rotation](https://forums.unrealengine.com/t/linetrace-doest-copy-camera-rotation/341990)

<div class="topic-metadata">

**Author:** [@yghtim](https://forums.unrealengine.com/u/yghtim)\
**Replies:** 1\
**Last updated:** [April 7, 2023, 7:46am UTC](https://forums.unrealengine.com/t/linetrace-doest-copy-camera-rotation/341990 "2023-04-07T07:46:02Z")

</div>

Alright so im extremely new to the Unreal Engine 4, and im learning how i can send out a LineTrace (Raycast) So i have tried to do it my self, i have followed a youtube tutorial and i have followed the guid for it on th…

---

## [Line trace by channel = death](https://forums.unrealengine.com/t/line-trace-by-channel-death/355196)

<div class="topic-metadata">

**Author:** [@Canti\_Prime](https://forums.unrealengine.com/u/Canti_Prime)\
**Replies:** 1\
**Last updated:** [February 17, 2023, 3:51am UTC](https://forums.unrealengine.com/t/line-trace-by-channel-death/355196 "2023-02-17T03:51:15Z")

</div>

hey i have a line trace by channel for the first person template gun and have got it to hit my ai however i need to have the ai die but i don’t know how. I have gotten the ai to blow up when inear to the character but i …

---

## [Line trace not hitting mesh component](https://forums.unrealengine.com/t/line-trace-not-hitting-mesh-component/732316)

<div class="topic-metadata">

**Author:** [@Zapking9224](https://forums.unrealengine.com/u/Zapking9224)\
**Replies:** 7\
**Last updated:** [January 12, 2023, 12:06pm UTC](https://forums.unrealengine.com/t/line-trace-not-hitting-mesh-component/732316 "2023-01-12T12:06:05Z")

</div>

Hi, So I’m trying to make a system where when the player gets near a particular object, it will trigger a bunch of line traces to make sure the player is looking at it and then it should display a widget on the screen t…

---

## [Camera clipping breaks my line trace RESOLVED](https://forums.unrealengine.com/t/camera-clipping-breaks-my-line-trace-resolved/487471)

<div class="topic-metadata">

**Author:** [@angelens](https://forums.unrealengine.com/u/angelens)\
**Replies:** 12\
**Last updated:** [January 1, 2023, 8:05pm UTC](https://forums.unrealengine.com/t/camera-clipping-breaks-my-line-trace-resolved/487471 "2023-01-01T20:05:17Z")

</div>

Hey everyone, I set up a projectile with line trace but this breaks when the camera is clipped into an object. I need to change the start position of the line trace based on if it’s clipping but I have no idea on how to …

---

## [Find Collision UV On Sphere Trace Hit](https://forums.unrealengine.com/t/find-collision-uv-on-sphere-trace-hit/398467)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_76f1a61d1](https://forums.unrealengine.com/u/anonymous_user_76f1a61d1)\
**Replies:** 4\
**Last updated:** [December 30, 2022, 2:55am UTC](https://forums.unrealengine.com/t/find-collision-uv-on-sphere-trace-hit/398467 "2022-12-30T02:55:24Z")

</div>

I’ve encountered the problem that the Find Collision UV function does not work with either Event Hit or Sphere Trace. In these cases, the return value is False and the UV coordinates are 0.0. The same SetUp with a Line T…

---

## [Linetrace Not Hitting Pawn Mesh](https://forums.unrealengine.com/t/linetrace-not-hitting-pawn-mesh/362304)

<div class="topic-metadata">

**Author:** [@mdmoberly](https://forums.unrealengine.com/u/mdmoberly)\
**Replies:** 1\
**Last updated:** [December 11, 2022, 10:15am UTC](https://forums.unrealengine.com/t/linetrace-not-hitting-pawn-mesh/362304 "2022-12-11T10:15:34Z")

</div>

In trying to research the issue I am experiencing, I have found multiple people with the same problem with no solution. When I do a linetrace by channel, by default, it does not hit the BP\_Actor. If I change the trace c…

---

## [LineTrace doesn't generate Hit on ragdolled SkeletalMesh](https://forums.unrealengine.com/t/linetrace-doesnt-generate-hit-on-ragdolled-skeletalmesh/474847)

<div class="topic-metadata">

**Author:** [@Bakeneko](https://forums.unrealengine.com/u/Bakeneko)\
**Replies:** 3\
**Last updated:** [November 2, 2022, 1:18am UTC](https://forums.unrealengine.com/t/linetrace-doesnt-generate-hit-on-ragdolled-skeletalmesh/474847 "2022-11-02T01:18:56Z")

</div>

Hey guys, the LineTrace works just fine as long as the NPC is alive. However, once I kill it and enable physics on the SkeletalMesh the LineTrace seems to fail. Here’s the trace itself: AActor\* AIMP\_Player::GetFocused…

---

## [Event with linetrace similar to MouseOver Event](https://forums.unrealengine.com/t/event-with-linetrace-similar-to-mouseover-event/363825)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_ab1ea73f](https://forums.unrealengine.com/u/anonymous_user_ab1ea73f)\
**Replies:** 1\
**Last updated:** [September 6, 2022, 11:41pm UTC](https://forums.unrealengine.com/t/event-with-linetrace-similar-to-mouseover-event/363825 "2022-09-06T23:41:22Z")

</div>

Hi guys, I built a Blueprint that shoot a Linetrace in the center of the screen with a Tick event to evaluate if the ray is hitting over an object. When the Actor is hit appears a Highlight Material over it. If the Linet…

---

## [Accessing a Material Vertex Paint Color Value](https://forums.unrealengine.com/t/accessing-a-material-vertex-paint-color-value/446414)

<div class="topic-metadata">

**Author:** [@nameLive](https://forums.unrealengine.com/u/nameLive)\
**Replies:** 5\
**Last updated:** [August 20, 2022, 6:17pm UTC](https://forums.unrealengine.com/t/accessing-a-material-vertex-paint-color-value/446414 "2022-08-20T18:17:13Z")

</div>

Hi I want to somehow access the vertex paint color value under the player 0 or 1 was painted to determine whether the player is for example standing over painted grass so you could have the proper walking sound playing. …

---

## [SetCollisionResponseToChannels not working unless clicked in editor](https://forums.unrealengine.com/t/setcollisionresponsetochannels-not-working-unless-clicked-in-editor/386735)

<div class="topic-metadata">

**Author:** [@WASDMagician](https://forums.unrealengine.com/u/WASDMagician)\
**Replies:** 1\
**Last updated:** [July 8, 2022, 12:05am UTC](https://forums.unrealengine.com/t/setcollisionresponsetochannels-not-working-unless-clicked-in-editor/386735 "2022-07-08T00:05:19Z")

</div>

Hi, I’m having a problem with setting the collision response on a UStaticMeshComponent. I have a video of the problem here and the code I’m using is: void AWeapon\_Button::Set\_Mesh(UStaticMeshComponent \* \_incoming\_mesh,…

---

## [How to fix angular offset with "look at cursor" function in the top down template](https://forums.unrealengine.com/t/how-to-fix-angular-offset-with-look-at-cursor-function-in-the-top-down-template/429512)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_91c926f3](https://forums.unrealengine.com/u/anonymous_user_91c926f3)\
**Replies:** 4\
**Last updated:** [June 1, 2022, 10:52pm UTC](https://forums.unrealengine.com/t/how-to-fix-angular-offset-with-look-at-cursor-function-in-the-top-down-template/429512 "2022-06-01T22:52:55Z")

</div>

Hi there, i am trying to make a top down shooter. i did change the controls so that my character always looks at the cursor. For some reason, i do get kind of an offset when i am shooting diagonally. Here you can …

---

## [Crosshair Accuracy](https://forums.unrealengine.com/t/crosshair-accuracy/505436)

<div class="topic-metadata">

**Author:** [@Aumenn2003](https://forums.unrealengine.com/u/Aumenn2003)\
**Replies:** 2\
**Last updated:** [March 9, 2022, 9:58pm UTC](https://forums.unrealengine.com/t/crosshair-accuracy/505436 "2022-03-09T21:58:41Z")

</div>

Hey everyone, I have this issue that’s driving me insane and I don’t know how to fix it thanks to my excellent math skills lol. My bullets are shot towards a world location along the turret muzzle’s forward axis, that s…

---

## [How do I attach a beam to a specific point?](https://forums.unrealengine.com/t/how-do-i-attach-a-beam-to-a-specific-point/479399)

<div class="topic-metadata">

**Author:** [@Calibians](https://forums.unrealengine.com/u/Calibians)\
**Replies:** 9\
**Last updated:** [February 11, 2022, 2:05am UTC](https://forums.unrealengine.com/t/how-do-i-attach-a-beam-to-a-specific-point/479399 "2022-02-11T02:05:09Z")

</div>

Hi. The problem is as follows. I am trying to fix the linetrace at the beginning of the weapon. But when I move up and down and left to right, the beam starts to behave inadequately, which in turn affects the behavior of…

---

## [LineTraceSingleByChannel occasionally does not detect a moved object for up to 200ms](https://forums.unrealengine.com/t/linetracesinglebychannel-occasionally-does-not-detect-a-moved-object-for-up-to-200ms/494074)

<div class="topic-metadata">

**Author:** [@bluffdog](https://forums.unrealengine.com/u/bluffdog)\
**Replies:** 1\
**Last updated:** [February 5, 2022, 12:48am UTC](https://forums.unrealengine.com/t/linetracesinglebychannel-occasionally-does-not-detect-a-moved-object-for-up-to-200ms/494074 "2022-02-05T00:48:30Z")

</div>

I am performing a LineTraceSingleByChannel on the world from a stationary actor every tick with the exact same start and end position. I am also moving a boxcollider in and out of its path every second using SetActorL…

---

## [Collision between actors doesn't work if both actors have mobility is movable](https://forums.unrealengine.com/t/collision-between-actors-doesnt-work-if-both-actors-have-mobility-is-movable/481428)

<div class="topic-metadata">

**Author:** [@Nightjass](https://forums.unrealengine.com/u/Nightjass)\
**Replies:** 4\
**Last updated:** [February 4, 2022, 10:56pm UTC](https://forums.unrealengine.com/t/collision-between-actors-doesnt-work-if-both-actors-have-mobility-is-movable/481428 "2022-02-04T22:56:03Z")

</div>

Sometimes, with a probability of 20-30 percent, object collisions stop working. RayCast function stops working correctly. We check this using LineTrace under the cursor and capsuleComponent overlap event. However, co…

[Next page](https://forums.unrealengine.com/tag/linetrace/924.md?match_all_tags=true&page=1&tags%5B%5D=linetrace)
