Ever made a racing game? not known how to get the positions for each player? Well, now you can! I got bored and was prompted to help out, and this is the result. Simple an easy to implement. Simply run the script, module mode, on each car, attach a sensor to the track, and away you go! The car needs a property named “Dist”, and the lower this is, the closer they are to the finish, person with the lowest value is winning…
(You will need to make an array of the average points for the tracks, but it won’t be too difficult)
Track.blend (180 KB)
track2.blend (321 KB)
In the demo, WASD for movement, there are 2 scenes.