How can I test if a coordinate is inside another object?

I am generating an array of random coordinates within certain bounds, but I need to test if any of those coordinates are inside existing objects, and if they are - regenerate them. Is there a functionality in UE4 that I can use for this?

How would you do it?

If those objects are similar you could do a line trace. If it is hitting something or if it is hitting a certain actor you can do something else.

Since you know the maximum height you can just add that to your location and trace to that location.

A trace is pretty much checking in a line if something is there and results a boolean if something was hit and a hit result which you can break to cast the “other actor” to the one you want to check if it was that one of something else.

I hope this helps.