16 bytes : one car in a contact - two of these in the IS_CON More...
#include <ispackets.h>
Data Fields | |
| byte | PLID |
| byte | Info |
| like Info byte in CompCar (CCI_BLUE / CCI_YELLOW / CCI_LAG) | |
| byte | Sp2 |
| spare | |
| char | Steer |
| front wheel steer in degrees (right positive) | |
| byte | ThrBrk |
| high 4 bits : throttle / low 4 bits : brake (0 to 15) | |
| byte | CluHan |
| high 4 bits : clutch / low 4 bits : handbrake (0 to 15) | |
| byte | GearSp |
| high 4 bits : gear (15=R) / low 4 bits : spare | |
| byte | Speed |
| m/s | |
| byte | Direction |
| car's motion if Speed > 0 : 0 = world y direction, 128 = 180 deg | |
| byte | Heading |
| direction of forward axis : 0 = world y direction, 128 = 180 deg | |
| char | AccelF |
| m/s^2 longitudinal acceleration (forward positive) | |
| char | AccelR |
| m/s^2 lateral acceleration (right positive) | |
| short | X |
| position (1 metre = 16) | |
| short | Y |
| position (1 metre = 16) | |
16 bytes : one car in a contact - two of these in the IS_CON
Definition at line 2042 of file ispackets.h.
| byte CarContact::PLID |
Definition at line 2044 of file ispackets.h.
| byte CarContact::Info |
like Info byte in CompCar (CCI_BLUE / CCI_YELLOW / CCI_LAG)
Definition at line 2045 of file ispackets.h.
| byte CarContact::Sp2 |
spare
Definition at line 2046 of file ispackets.h.
| char CarContact::Steer |
front wheel steer in degrees (right positive)
Definition at line 2047 of file ispackets.h.
| byte CarContact::ThrBrk |
high 4 bits : throttle / low 4 bits : brake (0 to 15)
Definition at line 2049 of file ispackets.h.
| byte CarContact::CluHan |
high 4 bits : clutch / low 4 bits : handbrake (0 to 15)
Definition at line 2050 of file ispackets.h.
| byte CarContact::GearSp |
high 4 bits : gear (15=R) / low 4 bits : spare
Definition at line 2051 of file ispackets.h.
| byte CarContact::Speed |
m/s
Definition at line 2052 of file ispackets.h.
car's motion if Speed > 0 : 0 = world y direction, 128 = 180 deg
Definition at line 2054 of file ispackets.h.
| byte CarContact::Heading |
direction of forward axis : 0 = world y direction, 128 = 180 deg
Definition at line 2055 of file ispackets.h.
| char CarContact::AccelF |
m/s^2 longitudinal acceleration (forward positive)
Definition at line 2056 of file ispackets.h.
| char CarContact::AccelR |
m/s^2 lateral acceleration (right positive)
Definition at line 2057 of file ispackets.h.
| short CarContact::X |
position (1 metre = 16)
Definition at line 2059 of file ispackets.h.
| short CarContact::Y |
position (1 metre = 16)
Definition at line 2060 of file ispackets.h.
1.7.3