ants.Ant.goal()
Syntax
ant.goal[obj]
Description
Sets the object obj, which has x and y properties, as goal. The ant starts moving towards it. This low-level ant command allows you to modify the ant's behaviour by defining custom goals.
ant.goal[obj]
Sets the object obj, which has x and y properties, as goal. The ant starts moving towards it. This low-level ant command allows you to modify the ant's behaviour by defining custom goals.