# Raytrace to ignore capsule component and only hit mesh

**URL:** <https://forums.unrealengine.com/t/raytrace-to-ignore-capsule-component-and-only-hit-mesh/465603>\
**Category:** Rendering\
**Tags:** capsule-component, Ray-Tracing, unreal-engine, question\
**Created:** [May 22, 2020, 6:12am UTC](https://forums.unrealengine.com/t/raytrace-to-ignore-capsule-component-and-only-hit-mesh/465603 "2020-05-22T06:12:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BEnSon1101](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BEnSon1101](https://forums.unrealengine.com/u/BEnSon1101)\
**Post date:** [May 22, 2020, 6:12am UTC](https://forums.unrealengine.com/t/raytrace-to-ignore-capsule-component-and-only-hit-mesh/465603/1 "2020-05-22T06:12:22Z")

</div>

my raytraces collide with capsule component not mesh giving an inaccurate hit

**Should I use raytrace by object or by channel**
