Any guides on coding player car race position

Posted By: calz054

Any guides on coding player car race position - 08/24/08 08:54

Hi, do anybody has any guides or tutorials on how to go about coding a player car positioning in a the race? Player's car current standing in a race with many AI cars.
Posted By: Anonymous

Re: Any guides on coding player car race position - 08/24/08 10:37

place some (invisible/passable) checkpoints (path?) on the track.
Get the last passed checkpoint for each car.
Each position can be calculated by:

* round
* last passed checkpoint
* distance to last passed chackpoint

(the more checkpoints the more accurate is the calculatiuon)

mercuryus


Posted By: crumply

Re: Any guides on coding player car race position - 08/24/08 16:29

If you just drew that diagram to help explain you are a v helpful member of this forum smile
Posted By: calz054

Re: Any guides on coding player car race position - 08/24/08 17:26

Thanks a lot mercuryus, I managed to get the logic and it seems like the more AI cars I have, the more conditions and checking i need to consider to get the player's position. I am now trying to code the whole thing and it was really a pain. crazy
© 2024 lite-C Forums