When a robot detects an obstacle, the _dtcbearing
variable is filled with a bearing to the detected obstacle. Robots
can detect other robots, cookies, mines, and walls. Since
_dtcbearing contains a bearing rather than an absolute heading, values are in degrees ranging from -180 to 179 inclusive. A value
of 0 is directly ahead of a robot while -180 is directly behind a robot.
This variable is provided primarily for consistence with the collision and ping variables. Since obstacles may only be detected by a radar scan, _dtcbearing always matches the bearing of the robot's radar at the time scan was called.
When a robot detections another object it can also obtain the direction that object was traveling. The _dtcheading variable provides this information. For an illustrated example of bearing and heading values, see the _cldbearing help topic.
_dtcheading, _dtcenergy, _dtcid, _dtcteamid, _dtcrobot, _dtccookie, _dtcmine, _dtcwall