Game Development Community

AI Wheeled Vehicle Avoid Object

by Chris Skinner · in Torque Game Engine · 04/16/2007 (8:20 am) · 2 replies

I have implemented the simple AI Wheeled Vehicle resource and it works fine. I am generating an AI vehicle and having it stop in a trigger. I then generate another one behind it and it crashes into the back of the first one. What I would like to do is have some kind of avoid or stop function that stops the second vehicle a certain distance behind the first one. Any help would be greatly appreciated.

#1
04/16/2007 (8:59 am)
Take the desired location.
do a container search based on the radius of your vehicle.

now simply determine, using the contents of the container, how to park your vehicle there.
#2
04/16/2007 (10:01 am)
Thanks BG, I'll try it.