Dir Property

See Also Applies To Example Model

Sets or returns the direction in degrees of a Bot object. Read/write Double.

Remarks

The direction is measured relative to the Screen coordinate system. 0 degrees points in the positive direction of the y axis (North). A positive angle is measured from North towards the positive side of the x axis (West). A negative angle is measured from North towards the negative side of the x axis.

Example

The following example points all Bot objects to the left (west) using the Dir property.

Bots.Dir = -90 'point all Bots in the east direction