View Single Post
Old 26 April 2020, 21:40   #53
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,358
you mean for computer cars right? make the computer cars home to the closest homing point of an undrawn line across the circuit. Cars must not take a shortcut because someone pushed them and they missed a mandatory loop (well, in supercars 2 they "cheat" like that but not sure for super sprint, and not sure how much they can be pushed)

Not really a problem either way. Say points are numbered 0, 1, 2, 3, 4 ... a car starts aiming point 0 then once it's reached it aims point 1, ... and so on. If it can't choose it will choose the lowest ranking point besides the previous ones already met in this lap. If there's a problem and the closest 2 points are 4 and 3, okay, you missed point 2, but you choose point 3 in order to avoid to go backwards to much. Reset the met points at each lap.

Anyway, keep it simple, or it will be impossible to debug/tune.
jotd is offline  
 
Page generated in 0.04829 seconds with 11 queries