[gameprogrammer] Math and Game question

Hi,

 

I’m still working on my racing game and now I’m planning the (pseudo)AI.

 

That’s what I have:

1)       10 check points (places) – each check is a rectangle defined by two
points (yes, just two points to make it easier, and when I combine its
values – x, y and z, I have check point)

2)       I run the race alone and store my car’s position, orientation and
speed, once per 100 frames. (about 50 times per lap). I record the first and
the last frames of the lap. So I have information for one complete lap

 

Now what I wanna know is how could I check the AI current position and with
the given data (check points and store position/orientation/speed) make the
it keep moving in the right direction.

Note: Every check I’d do I should tell the IA car some drive commands like
(LEFT, RIGHT, THROTTLE, BREAK) and not “change” anything, just send the
drive commands.

 

Any ideas? Is this a math/quaternions question?

 

Thanks a lot,

Dirso.


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.10/624 - Release Date: 12/1/2007
14:04
 

Other related posts: