With the MAXScript variable
pop.turnopt, you can adjust the way pedestrians turn when they come to an intersection.
You can set the value of
pop.turnopt in the Scripting Mini Listener or a Scripting Listener window.
Important: Changes to the value of
pop.turnopt last only for the current session of
3ds Max. This value is not saved with the MAX scene file.
These are the possible settings for
pop.turnopt:
-
pop.turnopt=#maxspeed
- Pedestrians select the turn that gives them the fastest speed through the intersection, if they need to speed up in order to avoid others.
This helps avoid traffic jams by getting pedestrians quickly through the intersection.
-
pop.turnopt=#maxdistribution
- Pedestrians select the turn that feeds the outgoing lane that hasn't been occupied for the longest time. This distributes pedestrians evenly across outgoing flows.
-
pop.turnopt=#mindistance
- Pedestrians select the turn that requires them to travel the least distance.
-
pop.turnopt=#hybrid
- (The default.) Pedestrians select the turn based on a mix of all of the above.