Game Development Community

AI Vehicle

by Bruno Grieco · in Technical Issues · 04/27/2004 (5:13 pm) · 8 replies

Hi there,

Could someone point me to some resources about vehicles controled by bots ?

I managed to mount one on a vehicle but he drives like crazy all over the place and I cant get it to go where it should.

TIA

Bruno

#1
04/27/2004 (5:21 pm)
Maybe you could post your resources on the "guy that drives like crazy all over the place"? ;) That could be interesting. (sorry for not helping, I'd find the same thing very useful.)
#2
04/27/2004 (5:37 pm)
I have written a small snippet of code that runs within torque's ai to calculate vehicle rotations.
it is not the best math algorythm for determining rotation angle.
but it works and they drive well.
they would need to learn how to apply altitude to that.
as well they never did learn about obsticles.

anyhow.
if you have a torque license feel free to do what you can with that. it if nothing else is a good starting point for someone who has nothing.
#3
04/27/2004 (5:40 pm)
Thanks BadGuy,

Yes, I have a License. How can I get that snipple ?

I also downloaded and instaled your vehicle tutorial. You should see the bot mounting your drone and flying away.

TIA

Bruno
#4
04/27/2004 (10:21 pm)
This should be the one...
#5
04/27/2004 (10:45 pm)
Heh..
indeed. Uglier than I remember! :)
maybe I should have another look at that.
#6
04/28/2004 (2:07 pm)
Thanks Guys,

I'll give it a try.

BTW, in the link. On the first listing, there is a cent sign in line 14 "box.getCenter("c"er);" the"c" is where the cent sign is. What should go in there ?
#7
04/28/2004 (4:26 pm)
HELP...

I belive the cent thing should be ¢er that was substitued by HTML.

But it didn't compile.

I placed the AIPlayer::getSteeringAngle() function in the AIplayer.cc file.
Copied the ExtractEuler function from WorldEditor to AIPlayer.

BUT I get an mAvoidObject and mAvoidLocation as undefined. It also cannot find the DrivingState enum I added to vehicle.h

Placed the enum DrivingState and variables inside the public part of the Vehicle Class in vehicle.h

BUT Vehicle class already defines mSteering as Point2F this should be redefined to DrivingState !!!??!?!

TIA

Bruno
#8
07/14/2004 (5:20 am)
Make its avatar a vehicle and add the steering angle to the player info.?.