[gameprogrammer] Re: Racing Game

On Saturday 23 December 2006 23:04, Edilson Vasconcelos de Melo Junior 
wrote:
> Hi,
>
>
>
> I working on a racing game and I have a problem: To know whether the
> player finished the race I test if the car position is in the finish
> line, but the problem is if the player starts running, turns the car
> and then drives in the wrong way it will end up winning the race :-(.
> How could I know the player is in the wrong way? I put several check
> points and uncheck them if it was already checked, but I really would
> like to put a sign in the screen telling him his is in the wrong way.

It depends how you are laying the track. I think for AI purposes you 
will need a full path of the track and thus you already have a heading 
vector for the track. Just comparing this to the car's heading vector 
will give you enough information.

---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: