Hey everyone. I have set up a line trace with a blueprint interface that helps me interact with objects when I look at them. I also added a sphere collision with widget on my static mesh to make E key appear on screen when I am close to the mesh (overlapping the sphere collision). The problem is, when I am outside the sphere collision, line trace works fine. But when I am inside the sphere collision, line trace doesn’t work properly. When I look somewhere else, I can interact with the object but when I look directly into the object like what its supposed to be, I cannot interact. I have also tried changing the collision settings on SphereCollision to ignore my line trace, but still doesn’t work. I am adding the images and video for you to further investigate. Thank you for your help.
This is my E widget blueprint.
This is the sphere collision for E widget blueprint.
This is for turning radio on and off. Interaction Blueprint.
This is line trace blueprint for interaction.
This is the collision settings of SphereCollision to ignore line trace.
So I am trying to turn radio on and off by line trace, it works when I am outside the sphere collision but doesn’t work properly when I am overlapping the collision.
And here is the video to my problem to make it clear:
Thank you for your help.