Is it possible to parse shock travel data from the sim to an insim application? Basically I'm trying to measure "air-time" when you jump a ramp.
struct OutSimWheel // 10 ints
{
float SuspDeflect; // compression from unloaded
float Steer; // including Ackermann and toe
float XForce; // force right
float YForce; // force forward
float VerticalLoad; // perpendicular to surface
float AngVel; // radians/s
float LeanRelToRoad; // radians a-c viewed from rear
byte AirTemp; // degrees C
byte SlipFraction; // (0 to 255 - see below)
byte Touching; // touching ground
byte Sp3;
float SlipRatio; // slip ratio
float TanSlipAngle; // tangent of slip angle
};
struct CompCar // Car info in 28 bytes - there is an array of these in the MCI (below)
{
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 - see below
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; // car's motion if Speed > 0: 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)
};