Example #1
0
 public TrafficDriver(string cfmFile, TrafficDriverDirection direction)
 {
     Vehicle = new Vehicle(cfmFile);
     //Vehicle.SteeringSpeed = 7;
     _direction = direction;
     if (direction == TrafficDriverDirection.Forward)
     {
         VirtualLane = MaxVirtualLanes - 1;
     }
     else
     {
         VirtualLane = 1;
     }
 }
Example #2
0
 public TrafficDriver(string cfmFile, TrafficDriverDirection direction)
 {
     Vehicle = new Vehicle(cfmFile);
     //Vehicle.SteeringSpeed = 7;
     _direction = direction;
     if (direction == TrafficDriverDirection.Forward)
     {
         VirtualLane = MaxVirtualLanes - 1;
     }
     else
     {
         VirtualLane = 1;
     }
 }