Vehicle heading angle
izvvv opened this issue · comments
vv commented
vv commented
Edouard Leurent commented
v = Vehicle.make_on_lane(...)
aligns the vehicle heading with the lane direction, by default.
you can just add the following line below to rotate the vehicles:
v = Vehicle.make_on_lane(...)
v.heading += np.pi / 2
v.color = ...
(or you can just replace the call to make_on_lane
by a copy of the function's code and change the heading as needed)