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?
asked Dec 23 '14 at 06:58 AM in Blueprint Scripting
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.
answered Dec 23 '14 at 08:36 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here