World Bots![]() Bot![]() ![]() ViewField |
Defines and manipulates the interaction area of a Bot.
The ViewField object is used to define default interaction distances and capture spaces between Bot objects and surrounding objects.
Each Bot object has its own ViewField object.
The following example uses the ViewField object to define a Bot object's capture space used for modifying a nearby Bot object's icon. The capture region is defined as a half circle spanning from -90 degrees to 90 degrees relative to the Bot object's heading, with a radius of 20 distance units. Only Bot objects that fall within this capture space are considered in the Closest method.
Bot.ViewField.Radius = 20
Bot.ViewField.Span = 180
Bot.ViewField.Show
Bot.Closest.Shape.Icon = Bot.Shape.Icon