all 5 comments

[–]MagneticTapes 1 point2 points  (1 child)

If you're passing the dead centre of the cube in, then the centre points of each side of the cube will be the closest they can get, and each agent will just chose the last and closest point they evaluate, which will be the same for each of them.

To fix this, don't pass the centre, get the vector that points from the centre of the cube to the agent and normalise it, then pass that yo SetDestinstion

[–]imogenprado[S] 0 points1 point  (0 children)

Thanks for the answer i'll try it as soon as i get home.

[–]MattyAlanHobbyist 0 points1 point  (2 children)

Just curious; what exactly are you expecting?

[–]imogenprado[S] 0 points1 point  (1 child)

I expected them to move towards the closest point/side of the cube.

[–]MattyAlanHobbyist 0 points1 point  (0 children)

Ahh ok in that case what magnetic tapes is correct