Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: mallenroh on February 18, 2018, 12:43:05 PM

Title: array find closest inaccurate return
Post by: mallenroh 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)
Title: Re: array find closest inaccurate return
Post by: jeanfabre 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
Title: Re: array find closest inaccurate return
Post by: mallenroh 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!
Title: Re: array find closest inaccurate return
Post by: jeanfabre 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