{"id":9583,"date":"2023-03-05T23:56:03","date_gmt":"2023-03-05T23:56:03","guid":{"rendered":"http:\/\/phoenixgamedevelopment.com\/blog\/?p=9583"},"modified":"2023-03-05T23:56:03","modified_gmt":"2023-03-05T23:56:03","slug":"p0-b4-part-1207-traffic-system","status":"publish","type":"post","link":"https:\/\/phoenixgamedevelopment.com\/blog\/p0-b4-part-1207-traffic-system\/","title":{"rendered":"P0-B4: Part 1207: Traffic System"},"content":{"rendered":"\n<p>The first step with the traffic system is to generate separate graphs for the pedestrians and the vehicles.<\/p>\n\n\n\n<p>I may also need to generate a different graph for each &#8220;lane&#8221; of the streets (left lane, right lane, etc).<\/p>\n\n\n\n<p>Generating the graphs shouldn&#8217;t be difficult, since they are generated asynchronously.<\/p>\n\n\n\n<p>The problem will be trying to make sure that the vehicles always travel in the same direction as each other, and don&#8217;t collide, etc.<\/p>\n\n\n\n<p>The A* pathfinding project that I am using for navigation has no built in support for this (that I am aware of, at least).<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The first step with the traffic system is to generate separate graphs for the pedestrians and the vehicles. I may also need to generate a different graph for each &#8220;lane&#8221; of the streets (left lane, right lane, etc). Generating the graphs shouldn&#8217;t be difficult, since they are generated asynchronously. The problem will be trying to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,32,17,31,10,11],"tags":[],"class_list":["post-9583","post","type-post","status-publish","format-standard","hentry","category-astral-realms","category-meridian","category-p-0","category-p0_b4","category-software-and-games","category-spiritus-astrum","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"aioseo_notices":[],"builder_content":"","_links":{"self":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/9583"}],"collection":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/comments?post=9583"}],"version-history":[{"count":1,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/9583\/revisions"}],"predecessor-version":[{"id":9584,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/9583\/revisions\/9584"}],"wp:attachment":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/media?parent=9583"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/categories?post=9583"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/tags?post=9583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}