- Home /
Unity car won't follow old waypoint
I used the default unity car from the vehicle asset pack in an attempt to make a selectable car that only follows the waypoint when it is selected, but follows the last known waypoint when unselected. My waypoint is set to move wherever I click via raycast. If the car is selected it moves to wherever I click the waypoint, and if it is unselected it will move to the current waypoint and stop. So the problem is that if the car is unselected and I move the waypoint to a new position before the car can get to the last position, the car will update and follow the new spot that I clicked. I haven't been able to find the location in the (waypoint and carAI) scripts on the unity car where it checks the location of the waypoint. I was hoping to change the location checker to a one-time check when the car is unselected.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Waypoint in space game 0 Answers
C# Coroutine help 1 Answer
How to make a linked waypoint editor 0 Answers