# Line Trace by Channel (Complex Collision) And Skeletal Meshes?

**URL:** <https://forums.unrealengine.com/t/line-trace-by-channel-complex-collision-and-skeletal-meshes/789324>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, Physics, Blueprint, question\
**Created:** [March 12, 2023, 11:17pm UTC](https://forums.unrealengine.com/t/line-trace-by-channel-complex-collision-and-skeletal-meshes/789324 "2023-03-12T23:17:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![VelikyPanda](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/velikypanda/32/1008648_2.png) [@VelikyPanda](https://forums.unrealengine.com/u/VelikyPanda)\
**Post date:** [March 12, 2023, 11:17pm UTC](https://forums.unrealengine.com/t/line-trace-by-channel-complex-collision-and-skeletal-meshes/789324/1 "2023-03-12T23:17:19Z")

</div>

Hi,

I’m trying to set up a line trace by channel using the complex collision to see which component in a blueprint I’m looking at.

It works on regular static meshes but on a skeletal mesh, it doesn’t register any hits unless I turn ‘use complex collision’ off.

Does this feature not work on skeletal meshes or am I doing something wrong?

Thanks 🙃

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [March 12, 2023, 11:27pm UTC](https://forums.unrealengine.com/t/line-trace-by-channel-complex-collision-and-skeletal-meshes/789324/2 "2023-03-12T23:27:33Z")

</div>

Hey there @VelikyPanda! Skeletal mesh components can be collided with using their physical asset, but you have to enable collisions and , or if you need very precise collision, you can use per poly collision.

> [@LineTrace doesn't generate Hit on ragdolled SkeletalMesh](https://forums.unrealengine.com/t/linetrace-doesnt-generate-hit-on-ragdolled-skeletalmesh/474847/2):
>
> Strange… I thought I received an answer, but I can’t see it. Whoever answered me, thanks for pushing me in the right direction! I was able to solve my problem without any limitations. This was the problem: The goal was to be able to focus the ragdolled body laying on the ground. The CapsuleComponent triggered all the hit events for focusing and killing the NPC. After the NPC died I obviously deactivated the capsules collisions inside the code, since it’s not supposed…

> [@Line Trace Not Hitting Skeletal Mesh](https://forums.unrealengine.com/t/line-trace-not-hitting-skeletal-mesh/337050):
>
> Hi I am shooting a projectile and on overlap with the a characters capsule component generate a line trace from the projectile and try and find the bone name of the part of the skeletal mesh that it collides with. But the line trace just goes straight through the skeletal mesh no matter what collision settings I try and change. Currently the skeletal mesh has a ragdoll collision and the capsule component has a pawn collision (auto weld is off). The projectile has the following custom collision. …

---

<div class="post-metadata">

**Author:** ![VelikyPanda](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/velikypanda/32/1008648_2.png) [@VelikyPanda](https://forums.unrealengine.com/u/VelikyPanda)\
**Post date:** [March 12, 2023, 11:55pm UTC](https://forums.unrealengine.com/t/line-trace-by-channel-complex-collision-and-skeletal-meshes/789324/3 "2023-03-12T23:55:55Z")

</div>

I’m using this on a vehicle. Will enabling ‘per poly collision’ have any impact on the performance or will that only be used for the line trace and the simple collision in the physics asset will still be used for the PhysX?

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [March 13, 2023, 12:59am UTC](https://forums.unrealengine.com/t/line-trace-by-channel-complex-collision-and-skeletal-meshes/789324/4 "2023-03-13T00:59:04Z")

</div>

If I remember correctly physics should default to using the physics asset/simple collisions, and yes if per poly collision can incur a solid performance penalty if you have lots of those actors.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 13, 2023, 1:13am UTC](https://forums.unrealengine.com/t/line-trace-by-channel-complex-collision-and-skeletal-meshes/789324/5 "2023-03-13T01:13:52Z")

</div>

> [@VelikyPanda](#):
>
> I’m trying to set up a line trace by channel using the complex collision to see which component in a blueprint I’m looking at.

But you do not need Complex Collision to do the above. Regardless of it being complex or not, tracing on a channel and blocking that channel on the (skeletal) mesh will return hit component and bones.
