Sets or returns the way Bot objects interact with the edges of the Screen display area. Read/write VbtBoundary.
| VbtBoundary can be one of the following: |
| vbtNoLimit No boundary - objects continue across edges and out of view. |
| vbtWalled Objects reflect off the World edges. |
| vbtWrapped Objects wrap around to opposite side when an edge is crossed. |
This property affects the way distances and directions are calculated between objects. For example, in wrapped mode, the distance calculated from one Bot to another using the DistTo method is the shorter of all possible paths after accounting for wrapping around each of the Screen display edges.
The following example sets the Bounds property to wrap mode.
World.Screen.Bounds = vbtWrapped