How to spawn coins in a way to not collide?

Hello everyone!

I have a problem… I am developing a game so problems will be very common… from which I will learn a lot!

My problem is about spawning coins in a way they avoid obstacles…
I have this so far (I get it from this post in answerhub



With the blueprint above, I can manipulate the lane in which they can spawn, as you can see.
But I want to manipulate the lane to not collide with an obstacle as shown in the illustration below…


Yellow circles represent coins.
Blue squares represent obstacles.
The big black square outline represents a simple room.

You could do a trace to see if something is blocking it. If not, spawn.
There was recently a twitch stream from Epic about traces:
And of course the docs: