Game Development Community

AIWheeledVehicle don't follow the path...

by Corin · in Torque Game Engine · 02/11/2005 (6:32 am) · 14 replies


#1
02/11/2005 (6:32 am)
Increase the tolerance. The vehicle is walking in circles cause it never hits the right point and it can't steer beyond that angle.
#2
02/11/2005 (8:16 am)
If it is stopping at first marker, that means the onReachDestination code is not working. That code is located in the bot.cs file. Slap an echo("onReachDestination"); in there and see if it ever gets called.
Run your test then look at the console and look for a line that say s"onreachdestination".

If it exists, then that code is not telling the car to go to the next node for whatever reason. The other possibilty is that the path is not set up right?

If it is not getting called, it's probably the moveTolerance problem or something else.

Thanks,
Brian
#3
02/12/2005 (6:17 am)
Don't use the setMoveTolerance. Hard code it in C++. I usually multiply the vehicle tolerance by 7.
#4
02/14/2005 (6:46 am)
Does your MasterBlaster vehicle has an eye node ? Also, do your vehicle has a getEyeTransform method ?
#5
02/15/2005 (12:48 pm)
Yes, I'm still here ( even though this week and the next will be very hard ).

What do you mean by can't create a path ?
#6
02/16/2005 (1:02 pm)
That's because you are controlling the object when you are mounting on it. The AIvehicle will only run thru the paths if you are NOT in it.

Maybe you should try This Resource instead of the AIVehicle. This will allow a bot to drive ( or fly ) if mounted but the vehicle will not be changed.

I'm Brazillian, so if you prefer, you may post in spanish cause I understand some "Portunhol".
#7
02/17/2005 (4:56 am)
Bom,

Eu nunca fiz isso. O que voc
#8
02/18/2005 (11:08 am)
Para cotrolar a velocidade ser
#9
02/23/2005 (12:31 pm)
D
#10
02/23/2005 (12:36 pm)
Wouldn't it be great to know if any of this could help out our english speaking folk?
#11
02/24/2005 (4:34 am)
Stop moaning, Gonzo, there is enough room for everybody.
#12
02/24/2005 (5:46 am)
Well GOLLY GEE you are right!!!

Ok, now that I've acknowledged your unsolicited snide remark I still think it would be nice for the rest of us to know of what value this convo was and what great data and/or lessons were learned from it. But don't sweat it, I've already figured out that it's just wishful thinking.
#13
04/19/2005 (7:16 am)
Oi Chonli,

N
#14
04/20/2005 (10:45 am)
Luis,

O seu problema est