Forum Discussion
NullValuePoint
9 months agoMember
World start populates the list and calls move.
Move will try to move through all the position locations within a single frame and you won't see it. But it also removes the positions from the list. When grab happens, the list is empty. It won't move and even if it didn't remove the positions from the list, it'd randomly move through all the positions for no reason.
What you want to do is keep the positions in the list. just pick a position at random and move it there. If you don't want the same location, just save the current index as a variable, and while the random locations != last location, pick a new random location.