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"

GetRandomPointInRadius doesn't work correctly

Hello,

I think there is something bad happening because Get Random Point In Radius (BP node and C++ function probably too) sometimes does not change input origin and just sends it to output, so return value is not random point. This happens in about 50% of cases.

It is very easy to reproduce, just add following nodes (see screenshot) to controller of top down template. I also attached my project.

Tested on versions: 4.4.3, 4.7.5

Screenshot: alt text Project (50mb): http://www.filedropper.com/bptopdown47randomradiusbug

Product Version: Not Selected
Tags:
more ▼

asked Apr 16 '15 at 05:50 PM in Bug Reports

avatar image

nonder
136 13 22 33

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

1 answer: sort voted first

Hi Nonder,

Thank you for you report. I have recently seen a lot of fixes for broken "random" location choices so I tested this in 4.7.5 and our internal branch. I could see the exact problem you are showing here in 4.7.5, but luckily when I tried again in our main branch, the points were completely random and no longer had an obvious trail. This is currently available via GitHub, but it is not well tested for other bugs.

Please let me know if this still occurs for you after our next full build is released.

Cheers!

more ▼

answered Apr 16 '15 at 09:11 PM

avatar image MieszkoZ STAFF Apr 17 '15 at 02:22 PM

Yeah, I've already fixed it :D

avatar image nonder Apr 17 '15 at 04:08 PM

Thank you! Glad it is fixed, finally I will be able to remove that ugly condition if(Origin == RandomPoint) then ignore that and try again :)

(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