CitiesSkylinesMods / TMPE

Cities: Skylines Traffic Manager: President Edition
https://steamcommunity.com/sharedfiles/filedetails/?id=1637663252
MIT License
571 stars 85 forks source link

Increase preference of U-turn during pathfinding for articulated vehicles on sufficiently wide roads #1622

Open aditya-murda opened 2 years ago

aditya-murda commented 2 years ago

Describe your idea

It is not uncommon for articulated vehicles such as semi-trucks or trucks with trailers to do U-turns on roads with sufficiently wide medians. However, I'm observing that articulated vehicles in-game are very unlikely to perform U-turns and instead take longer routes. This would be advantageous on roads with a sufficiently wide median like this or vanilla 4-lane 32-meter road

I'd suggest that during pathfinding for an articulated vehicle, U-turn paths are also considered on roads with a sufficiently wide medians. This may be inferred from road width and lane count, but there's may be a better way

Screenshots?

Screenshot_20220730_215613

Notes or questions?

krzychu124 commented 2 years ago

Actually it's not that easy to detect such case (wide roads/medians). There are multiple issues with median detection and any kind of gap between lanes. Once we fix/improve median detection it will be trivial to add a feature like this but for now it's impossible because of issues I mentioned.