CompCar Struct Reference

Car info in 28 bytes. More...

#include <ispackets.h>


Data Fields

word Node
 current path node
word Lap
 current lap
byte PLID
 player's unique id
byte Position
 current race position : 0 = unknown, 1 = leader, etc...
byte Info
 flags and other info
byte Sp3
int X
 X map (65536 = 1 metre).
int Y
 Y map (65536 = 1 metre).
int Z
 Z alt (65536 = 1 metre).
word Speed
 speed (32768 = 100 m/s)
word Direction
 direction of car's motion : 0 = world y direction, 32768 = 180 deg
word Heading
 direction of forward axis : 0 = world y direction, 32768 = 180 deg
short AngVel
 signed, rate of change of heading : (16384 = 360 deg/s)


Detailed Description

Car info in 28 bytes.

there is an array of these in the MCI

NOTE 1)
Info byte - the bits in this byte have the following meanings.
NOTE 2)
Heading : 0 = world y axis direction, 32768 = 180 degrees, anticlockwise from above
NOTE 3)
AngVel : 0 = no change in heading, 8192 = 180 degrees per second anticlockwise

Definition at line 1805 of file ispackets.h.


Field Documentation

current path node

Definition at line 1807 of file ispackets.h.

current lap

Definition at line 1808 of file ispackets.h.

player's unique id

Definition at line 1809 of file ispackets.h.

current race position : 0 = unknown, 1 = leader, etc...

Definition at line 1810 of file ispackets.h.

flags and other info

Definition at line 1811 of file ispackets.h.

Definition at line 1812 of file ispackets.h.

X map (65536 = 1 metre).

Definition at line 1813 of file ispackets.h.

Y map (65536 = 1 metre).

Definition at line 1814 of file ispackets.h.

Z alt (65536 = 1 metre).

Definition at line 1815 of file ispackets.h.

speed (32768 = 100 m/s)

Definition at line 1816 of file ispackets.h.

direction of car's motion : 0 = world y direction, 32768 = 180 deg

Definition at line 1817 of file ispackets.h.

direction of forward axis : 0 = world y direction, 32768 = 180 deg

Definition at line 1818 of file ispackets.h.

signed, rate of change of heading : (16384 = 360 deg/s)

Definition at line 1819 of file ispackets.h.


The documentation for this struct was generated from the following file:

Generated on Wed Apr 28 11:50:47 2010 for InSim by  doxygen 1.5.8