# Are you able to hit a component ON the player with a ray trace made BY the player?

**URL:** <https://forums.unrealengine.com/t/are-you-able-to-hit-a-component-on-the-player-with-a-ray-trace-made-by-the-player/155061>\
**Category:** World Creation\
**Tags:** Tracing, unreal-engine\
**Created:** [December 14, 2020, 11:30pm UTC](https://forums.unrealengine.com/t/are-you-able-to-hit-a-component-on-the-player-with-a-ray-trace-made-by-the-player/155061 "2020-12-14T23:30:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZestyCruton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZestyCruton](https://forums.unrealengine.com/u/ZestyCruton)\
**Post date:** [December 14, 2020, 11:30pm UTC](https://forums.unrealengine.com/t/are-you-able-to-hit-a-component-on-the-player-with-a-ray-trace-made-by-the-player/155061/1 "2020-12-14T23:30:58Z")

</div>

I have a sphere component on the player pawn that expands and contracts upon button presses, but then also want to be able to send out a line trace (reversed: end point -\> player camera) to get a hit point on that dynamic sphere component. I noticed a boolean check that says Ignore Self, which seems to mean that you can detect the player. I may just be missing something in my current setup, but if you know how to achieve this please let me know. Thanks!

 ![LineTracePawnComponent.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/4/64eb6ccb77e0f9c519588a67234529369eba77cb.jpeg)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [December 15, 2020, 10:25am UTC](https://forums.unrealengine.com/t/are-you-able-to-hit-a-component-on-the-player-with-a-ray-trace-made-by-the-player/155061/2 "2020-12-15T10:25:23Z")

</div>

> [@ZestyCruton](#):
>
> I have a sphere component on the player pawn that expands and contracts upon button presses, but then also want to be able to send out a line trace (reversed: end point -\> player camera) to get a hit point on that dynamic sphere component. I noticed a boolean check that says Ignore Self, which seems to mean that you can detect the player. I may just be missing something in my current setup, but if you know how to achieve this please let me know. Thanks!
> 
> ![LineTracePawnComponent.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/4/64eb6ccb77e0f9c519588a67234529369eba77cb.jpeg)

This should be possible, but you might have to fiddle with the collision settings to get it to work.

---

<div class="post-metadata">

**Author:** ![ZestyCruton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZestyCruton](https://forums.unrealengine.com/u/ZestyCruton)\
**Post date:** [December 15, 2020, 6:34pm UTC](https://forums.unrealengine.com/t/are-you-able-to-hit-a-component-on-the-player-with-a-ray-trace-made-by-the-player/155061/3 "2020-12-15T18:34:15Z")

</div>

Oh geez, that was it. Thanks for checking this out, much appreciated!
