-5

The title is pretty self explanatory. I need to kill the whole simulation after a car arrives at his destiny, disregarding everything that happens next. How can I achieve such goal?

1 Answers1

0

Call the endSimulation() method, to terminate the simulation programmatically. You should place this call where the positions are evaluated and you can check whether the arrival condition is true.

Rudi
  • 6,418
  • 1
  • 16
  • 20