rfDynHud Widget development - more details on getNextBehind methode needed

MerlinC

Is the available methode getNextBehind() providing the VehicleScoringInfo class of the next vehicle on track - or just the next vehicle in the current ranking?

Need a methode to figure out the next vehicle on track independent from the actual position, e.g. if between the leader and the second place a lapped car is running I would like to get the info of the lapped car if I call vsi.getNextBehind(...) [vsi being the VehicleScoringInfo of the leader].

Any advise is appreciated. Thanks in advance.
Merlin
 
Hello, you can cycle on all vsi and compare the getLapDistance of each car (distance from start line). So order them and you will have what you need
 

Back
Top