x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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?

Product Version: Not Selected
Tags:
more ▼

asked Dec 23 '14 at 06:58 AM in Blueprint Scripting

avatar image

mxnko
229 16 29 36

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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.

Cheers

more ▼

answered Dec 23 '14 at 08:36 AM

avatar image

Erasio
6k 291 86 293

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question