Hi all!
For some days I play somewhat with Insim.
At the moment I'm a bit confused, how to build up a live ranking table/list with the actual position of each driver in a race.
When a race restarts, I get the starting positions out of the IS_REO packet. But how do I know the position of a driver after a few laps?
To know the actual lap, I can count the IS_LAP packets, and if the IS_LAP of driver x arrives before IS_LAP of driver y, I could know, that x is in front of y. But is this the right way?
I want to know which driver is in front of whom in every second, or perhaps in every sector.
Must I use current path node? But then I only know if someone has overtaken another, when his node is higher than the node of the overtaken car.
paXton
For some days I play somewhat with Insim.
At the moment I'm a bit confused, how to build up a live ranking table/list with the actual position of each driver in a race.
When a race restarts, I get the starting positions out of the IS_REO packet. But how do I know the position of a driver after a few laps?
To know the actual lap, I can count the IS_LAP packets, and if the IS_LAP of driver x arrives before IS_LAP of driver y, I could know, that x is in front of y. But is this the right way?
I want to know which driver is in front of whom in every second, or perhaps in every sector.
Must I use current path node? But then I only know if someone has overtaken another, when his node is higher than the node of the overtaken car.
paXton