# Performance: line tracing vs collision component

**URL:** <https://forums.unrealengine.com/t/performance-line-tracing-vs-collision-component/444743>\
**Category:** World Creation\
**Tags:** line, unreal-engine, Performance, Collision, question\
**Created:** [March 6, 2019, 3:57pm UTC](https://forums.unrealengine.com/t/performance-line-tracing-vs-collision-component/444743 "2019-03-06T15:57:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yahima](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yahima](https://forums.unrealengine.com/u/Yahima)\
**Post date:** [March 6, 2019, 3:57pm UTC](https://forums.unrealengine.com/t/performance-line-tracing-vs-collision-component/444743/1 "2019-03-06T15:57:17Z")

</div>

Assume I have a character who can interact with specific objects in front of it. Is it better to check if there are such objects via line tracing or collision component’s OnOverlapBegin?

---

<div class="post-metadata">

**Author:** ![KristofMorva](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kristofmorva/32/1194508_2.png) [@KristofMorva](https://forums.unrealengine.com/u/KristofMorva)\
**Post date:** [March 6, 2019, 5:38pm UTC](https://forums.unrealengine.com/t/performance-line-tracing-vs-collision-component/444743/2 "2019-03-06T17:38:50Z")

</div>

Unless you have a hundred players, it won’t really matter.

What you should probably consider instead is, which one will work better? For example, OnOverlapBegin triggers even if there is a wall between your player and the object, and even if you’re near, but you’re looking behind or at the sky, while tracing has no such issues.

Or do you have a specific case, in which these issues do no affect you?

---

<div class="post-metadata">

**Author:** ![Yahima](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yahima](https://forums.unrealengine.com/u/Yahima)\
**Post date:** [March 7, 2019, 1:15am UTC](https://forums.unrealengine.com/t/performance-line-tracing-vs-collision-component/444743/3 "2019-03-07T01:15:59Z")

</div>

It is just as you have mentioned and such problems may occur. I am just trying to save as much performance as possible. Thank for your reply 🙂
