I’m having a problem with line trace. If I use “Get Hit Result Under Cursor for Objects” the face index is not working, it always returns -1. If I use “Line Trace by Channel” tracing the same spot, same object, I get a proper face index, example 7.
It’s pretty easy to reproduce on any sample level. Do you know why the face index is not working?
Side note, I tried to investigate the C++ code behind that BP.
Here is the stack of calls:
APlayerController::GetHitResultUnderCursorForObjects() APlayerController::GetHitResultAtScreenPosition() LineTraceSingleByObjectType(...,FCollisionQueryParams(SCENE_QUERY_STAT(ClickableTrace), bTraceComplex),...)
As you see in the last line he is passing some hardcoded parameters, then later in the code it seems to check for a FCollisionQueryParams.bReturnFaceIndex