Select to view content in your preferred language

Vehicle placement on CityEngine-generated streets.

5482
22
Jump to solution
08-07-2012 06:24 AM
JoshWade
Emerging Contributor
Hello again 🙂

I am beginning to create driving scenarios for a driving simulator. (For example, on a highway you are traveling at 70mph when suddenly the vehicle in front of you applies the brakes hard). I see that CE uses some mechanism for placing the cars on the roads neatly between the lines (Even on curved roads).

I am hoping that I can use your algorithm for my AI-driven cars. I assume it has something to do with the street network edges as well as the particular attributes of the street?

Any help would be wonderful!

-Josh
Tags (2)
0 Kudos
22 Replies
JoshWade
Emerging Contributor
No worries 🙂 I will take a look as well to see if I can find it.
0 Kudos
MatthiasBuehler1
Deactivated User
got it. as assumed.

was a missing
i += 1


here's the new file !
JoshWade
Emerging Contributor
Thank you very much! This has been extremely helpful.