How best to do line traces in a top down project?

Hi all. I’m working on a top down project. I saw a tutorial and done something like that :

I have to do line traces to pick up objects and add them to inventory.
It seems to work properly on a FirstPerson project. On my project I can take the items but after too long time and with some problems.

Any ideas?