Game Development Community

Setmovedestination()

by Roshan Kuriyan · in Technical Issues · 06/13/2006 (7:47 pm) · 1 replies

Hi,
I am trying AIwheeledvehicle class for ai car ,by using the method setMoveDestination() the car starts to move towards its destination but the car is not stopping at its destination instead its going in circle trying to reach its destination again & again.Can anyone tell me how to deccelarate & stop the car.I also tried Stop() method but vehicle didnt move .It will be highly beneficial if anyone can share code snippet regarding proper use of these methods.Thanks in advance.

#1
06/14/2006 (6:37 am)
This happens due to the move tollerance. Sometimes the AIVehicle doesn't reach it's exact destination. Which cause it to steer trying to do so. Increasing the tollerance will solve this problem.

Check the datablock documentation. There must be this parameter somewhere.