Hi there,
I am trying to set up a basic system in which my AI cars drive around the track, by way of waypoints. I thiought this would be simple, but the code that I have isn’t working… each time the car hits a waypoint, it slows down and moves to the next. It only gets to a couple of waypoints before coming to a complete stop… any ideas!!!
for (var i = 0; i < Waypoints.length - 1; ++i)
{
transform.position = Vector3.MoveTowards(transform.position,Waypoints_.transform.position,(fSpeed * Time.deltaTime));_
-
}*