struct OutSimPack
{
unsigned Time; // time in milliseconds (to check order)
Vector AngVel; // 3 floats, angular velocity vector
float Heading; // anticlockwise from above (Z)
float Pitch; // anticlockwise from right (X)
float Roll; // anticlockwise from front (Y)
Vector Accel; // 3 floats X, Y, Z
Vector Vel; // 3 floats X, Y, Z
Vec Pos; // 3 ints X, Y, Z (1m = 65536)
int ID; // optional - only if GameID is specified
};
How do the Position vectors work? I split it up sucessfully into 3 integers in Python. Then, I divide by 65536 to get meters. But, when I drive down the straight of KY GP Long, the X axis goes from 0 to 65536. How do I just get the amount of meters?
EDIT: Would IS_MCI be better for locating a car on the track? I just want to figure out location of cars so that I can make a points-based race where you go around the track collecting points. Kind of like arcadey games. Only if the cones marking the points do not reset. Or, If I figure out the time it takes for a cone to reset, then I can make the 'points' erm 're-spawn' there.