How to make linetrace ignore capsule of the enemy AI

  • create a new Ignored channel:

  • ensure the mesh blocks it:

  • when you trace, trace on that channel:


More about collision:


Technically, you do not need to create additional channels, you can play with the existing ones once you wrap your head around how collision filtering works. Example: