Hello, I’m new to unreal, so sorry for the dumb question.
I’m using LineTraceSingle with a custom GameTraceChannel that is blocked by “BlockAll” preset.
FVector End = PlayerLoc + PlayerRot.Vector() * MaxRange;
OwnerController->GetPlayerViewPoint(PlayerLoc, PlayerRot);
FHitResult hit;
bool isSuccess = GetWorld()->LineTraceSingleByChannel(hit, PlayerLoc, End, ECollisionChannel::ECC_GameTraceChannel1);
DrawDebugLine(GetWorld(), PlayerLoc, End, FColor::Red, true, 2.0f);
Now, when I use this on a wall, IsSuccess is false. The wall has a simple collision shape in the mesh, and here you can see the other details:
What am I doing wrong?