# Line tracing no longer works for character

**URL:** <https://forums.unrealengine.com/t/line-tracing-no-longer-works-for-character/1989968>\
**Category:** Programming & Scripting\
**Tags:** linetrace, unreal-engine, characters, CPP\
**Created:** [August 24, 2024, 10:46am UTC](https://forums.unrealengine.com/t/line-tracing-no-longer-works-for-character/1989968 "2024-08-24T10:46:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![asbe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@asbe](https://forums.unrealengine.com/u/asbe)\
**Post date:** [August 24, 2024, 10:46am UTC](https://forums.unrealengine.com/t/line-tracing-no-longer-works-for-character/1989968/1 "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 it was working until 5.1.

The line trac uses code similar to this:  
GetWorld()-\>LineTraceSingleByChannel(OutHit, StartPoint, End, ECC\_Camera, traceParams);  
There are no ignoredActors in traceParams. I also drew debug lines from startpoint to point of impact.  
It appears that the linetrace went straight through the character and hit the static mesh objects behind.

I changed the collision of the root object in the character to block all.  
It still didn’t work.

Thank you
