Line tracing no longer works for character

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