Jump to content

Minimize direct distance to object


GFurtado
 Share

Recommended Posts

Greetings!

 

I have this problem and I'm probably doing something wrong.

I'm trying to use the Find Step to make my entities look for the closest server through the DirectDistanceTo Expression.

This Process is triggered when the entity enters a Transfer Node.

Based on these screenshots, can you tell me what am I doing wrong? I'm almost certain the Search Expression is incorrect.

 

Thanks!

Process.PNG

Find Step.PNG

SetRow Step.PNG

Link to comment
Share on other sites

Personally I would use the search block set to search the entity population opposed to the find block. It should also be noted that the Exclusion Expression is evaluated at the start of runtime (if I am not mistaken) hence if this is false, the block will default to false for the entire runtime.

Hope this helps.

  • Thanks 1
Link to comment
Share on other sites

16 hours ago, MEagar said:

Personally I would use the search block set to search the entity population opposed to the find block.

Cool, I manage to find a solution using the Search Step. Thank you so much, Mark.

 

16 hours ago, MEagar said:

It should also be noted that the Exclusion Expression is evaluated at the start of runtime (if I am not mistaken) hence if this is false, the block will default to false for the entire runtime.

You're absolutely right. I didn't even notice it.

Link to comment
Share on other sites

×
×
  • Create New...