AI Traffic spawns with no initial velocity and it distrupts traffic flow

Discussion in 'Ideas and Suggestions' started by The Blitz, Jul 18, 2025 at 2:03 PM.

  1. The Blitz

    The Blitz
    Expand Collapse

    Joined:
    May 29, 2019
    Messages:
    69
    Hi. I observed that AI traffic spawns with 0 initial velocity and this causes existing traffic flow to be distrupted constantly.

    I have a simple idea before spawning a vehicle:
    1- Draw two lines straight from back of the car and front of the car. If either line doesnt intersect any road limits, spawn the car at max speed for that road.
    2- If a line intersect a road limit but angle difference isnt much (light curve) spawn slower
    3- If a line intersects a road limit and angle difference is high (tight curve) spawn even slower.

    Could take into account where in the line the intersection occurs: earlier intersection, slower speed.

    If you could also make AI traffic not hard brake and hard accelerate regularly that would be nice.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice