mLapDist sometimes reports negative value

Martin Vindis

Registered
I sometimes getting a negative value from mLapDist and this screws my plugin over a bit. This happened in a multi player practice session. Anyone knows why this would happen?
 
I sometimes getting a negative value from mLapDist and this screws my plugin over a bit. This happened in a multi player practice session. Anyone knows why this would happen?

I ended up here looking for this answer too.
I figured out that the position is negative when the car is in the pits!
std::abs sorted it out for me if you dont care about the pit info.
 
Back
Top