_dtcheading
Value Type
| numeric [0-359] |
Description
When a robot detects another object, the _dtcheading variable is set to the heading of the detected object. Values range from 0 to 359 inclusive. Robots can detect other robots, cookies, mines, and walls. When a robot detects an object that is moving, _dtcheading is set to the direction of that object's movement. Because of sliding, this may not be the direction that object is facing. When a detected object is stationary, _dtcheading is set to the direction that object is facing. Non-movable objects such as walls, cookies, and mines are always facing 0 degrees.
When a robot detects another object it can also obtain a bearing to the detected object. The _dtcbearing variable provides this information.
See Also
_dtcbearing, _dtcenergy, _dtcid, _dtcteamid, _dtcrobot, _dtccookie, _dtcmine, _dtcwall