{"author_name":"AnomalousUnderdog","cat":"MiniLD","comments":[],"epoch":1375078800,"likes":1,"metadata":{"p_key":"42205","p_author":"AnomalousUnderdog","p_authorkey":"507309","p_urlkey":"77828","p_title":"Strat Souls: WIP 11","p_cat":"MiniLD","p_event":"LD27","p_time":"1375078800","p_likes":"1","p_comments":"0","p_status":"UPD5","us_key":"507309","us_name":"AnomalousUnderdog","us_username":"AnomalousUnderdog","event_start":"1377216000","event_key":"18","event_name":"LD27"},"text":"<h6>0 days 15 hours 40 minutes 13 seconds left!<\/h6>\n <p>&nbsp;<\/p>\n <p style=\"text-align: center\"><a href=\"https:\/\/twitter.com\/AnomalusUndrdog\/status\/361762551501037568\/photo\/1\/large\"><img class=\"aligncenter\" alt=\"\" src=\"https:\/\/pbs.twimg.com\/media\/BQU9H7eCIAIEjRX.jpg\" width=\"484\" height=\"273\" \/><\/a><\/p>\n <p>So I got obstacle avoidance working, with thanks to some pseudocode explanations on boids <a href=\"http:\/\/www.kfish.org\/boids\/pseudocode.html\">here<\/a>.<\/p>\n <p>Units will still get stuck occasionally however, as there&#8217;s no escaping the need for pathfinding.<\/p>\n <p>Now I&#8217;m wondering if my old code for\u00a0<a href=\"http:\/\/aigamedev.com\/open\/tutorial\/influence-map-mechanics\/\">influence maps<\/a>\u00a0will help with this. Although influence maps are used for tactical reasoning, they are very similar to <a href=\"http:\/\/aigamedev.com\/open\/tutorials\/potential-fields\/\">potential fields<\/a>\u00a0(which is the one used as an alternative or supplement to traditional pathfinding, i.e. A*), so I think I can use the same code.<\/p>\n <p style=\"text-align: center\"><img class=\"aligncenter\" alt=\"\" src=\"http:\/\/forum.unity3d.com\/attachment.php?attachmentid=41027&amp;d=1353613693\" width=\"508\" height=\"317\" \/><\/p>\n <p>I shared my simple test implementation of Influence Maps in Unity.\u00a0You guys can check out the source code\u00a0<a href=\"https:\/\/bitbucket.org\/AnomalousUnderdog\/influencemapsunity3d\">here<\/a>. Here&#8217;s <a href=\"http:\/\/forum.unity3d.com\/threads\/145368-AI-Influence-Maps\">my forum thread<\/a> on the Unity forums.<\/p>\n <p>&nbsp;<\/p>\n <p>I think you need a combination of both obstacle avoidance and pathfinding to get good AI movement.<\/p>\n <p>Anyway, I would consider this tolerable for now, so I&#8217;ll move on to making a few more units.<\/p>\n \n <p>Tags: <a href=\"http:\/\/ludumdare.com\/compo\/tag\/progress\/\" rel=\"tag\">progress<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/screenshot\/\" rel=\"tag\">screenshot<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/strat-souls\/\" rel=\"tag\">Strat Souls<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/unity\/\" rel=\"tag\">unity<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/unity3d\/\" rel=\"tag\">unity3d<\/a><\/p>","time":"July 29th, 2013 1:20 am","title":"Strat Souls: WIP 11"}