ants.Ant.near()
Syntax
ant.near[obj, radius=10]
Description
Checks if something is nearby. If the object's x and y properties are within the radius of the ant, returns True. This low-level ant command allows you to modify the ant's behaviour by defining custom behaviour when reaching a goal.