LineTraceSingleByChannel returns hits even if that Actor's collisions been set to ignore all

This the house’s collision settings

This the LineTraceSingleByChannel result

I’m not sure if this is an engine’s BUG, although the COLLISION_CHANNEL_Interactable is random number that I typed(It is equal to ECC_EngineTraceChannel3) . But theoretically no hit result for an actor that ignores all collisions

What i see:

  • you have collision enabled on all 4 screenshots;
  • you have ignored(“disabled”) collision for all default + 2 custom channels on all 4 screenshots;
  • you tracing over non-default channel (ECC_EngineTraceChannel3);
  • your non-default channel is not defined in the project properties like weapon and actorbody channels (otherwise it would be visible in the list of channels under the weapon channel;
  • nevertheless you still hitting box component.

Hence, we can guess, that default response on non-default channels is blocking, which you did not override in project settings. So… just define this channel and set default response that you need? Or, depending on your goals, you may disable collision in more proper way, like setting Collision enabled: no collision

Yes, just the key point is that actors that ignore all collisions should not have hit results

actors that ignore all collisions should not have hit results

They do. But your actors are not set to Ignore all collisions, but are ignore some of collisions, so result you getting is pretty much logical consequence of your setup.

upd: i probably should clarify, that even though 15~30 channels are hidden from editor ui(unless setup in settings) - they are just hidden, no more: they are still present with default settings and default names

1 Like