IPC representation of a snake segment.
More...
#include <ipc_format.h>
|
|
ipc_real_t | x |
| | Relative position X in world orientation.
|
| |
|
ipc_real_t | y |
| | Relative position Y in world orientation.
|
| |
|
ipc_real_t | r |
| | Segment radius.
|
| |
|
ipc_real_t | dir |
| | Direction angle relative to your heading (range -π to +π)
|
| |
|
ipc_real_t | dist |
| | Distance between the center of your head and the segment's center.
|
| |
|
uint32_t | idx |
| | Segment number starting from head (idx == 0)
|
| |
|
ipc_guid_t | bot_id |
| | Bot ID.
|
| |
|
bool | is_self |
| | True if this segment belongs to ones own snake.
|
| |
IPC representation of a snake segment.