Closed eighthill closed 9 months ago
I've updated the method so the code won't check everytime with four different if-statements if an agent has touched the boundary. The new code now checks the absolute value of x and y, if it is greater than 1, the agent reflects from the boundary
I've updated the method so the code won't check everytime with four different if-statements if an agent has touched the boundary. The new code now checks the absolute value of x and y, if it is greater than 1, the agent reflects from the boundary