IRESTE/test_blender.py
2022-03-16 19:21:04 +01:00

15 lines
246 B
Python

from CarController import CarController
from Map import Map
m = Map()
cc = CarController(m)
m.fromPath("test7.net.xml")
cc.fromPath("test12.rou.xml")
cc.prepareRoute()
while True:
cc.update()
for car in cc.cars:
print(car.pos)