playMaker

Author Topic: array find closest inaccurate return  (Read 1237 times)

mallenroh

  • Playmaker Newbie
  • *
  • Posts: 32
array find closest inaccurate return
« on: February 18, 2018, 12:43:05 PM »
Hello,
Im finding the array find closest action is not always returning the actual closest object. Im using to find closest objects in worldspace, but after 10 10 (X Y) it no longer returns what is actually at that position (it returns what is at 8 10 instead)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: array find closest inaccurate return
« Reply #1 on: February 19, 2018, 02:26:31 AM »
Hi,

 sounds odd. Can you make a repro case with a simple scene, and if you can repro like that, send it over, I'll have a look.

 Bye,

 Jean

mallenroh

  • Playmaker Newbie
  • *
  • Posts: 32
Re: array find closest inaccurate return
« Reply #2 on: February 23, 2018, 10:48:10 PM »
Hi Jean,
Here is a simple repro case, with 2 different bugs
one is using array get closest game object (to a world space position)
It never grabs the right one after 8 units in Y

the other is using array sort game object by distance, which just returns a null reference exception error.

this is on a mac running latest unity and playmaker

thanks!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: array find closest inaccurate return
« Reply #3 on: February 26, 2018, 02:10:01 AM »
Hi,

 you scene is missing actions.

 please package it with all the actions it needs or pm me with the project zipped.

 Bye,

 Jean