{"id":52,"date":"2017-06-20T16:10:39","date_gmt":"2017-06-20T15:10:39","guid":{"rendered":"http:\/\/documentation.particleflocker.com\/?post_type=docs&#038;p=52"},"modified":"2017-07-18T23:15:57","modified_gmt":"2017-07-18T22:15:57","slug":"wall-following","status":"publish","type":"docs","link":"http:\/\/documentation.particleflocker.com\/?docs=flocking-systems\/steering-behaviours\/wall-following","title":{"rendered":"Wall Following"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"size-medium wp-image-204 alignright\" src=\"http:\/\/documentation.particleflocker.com\/wp-content\/uploads\/WallFollowing-300x300.jpg\" alt=\"\" width=\"300\" height=\"300\" srcset=\"http:\/\/documentation.particleflocker.com\/wp-content\/uploads\/WallFollowing-300x300.jpg 300w, http:\/\/documentation.particleflocker.com\/wp-content\/uploads\/WallFollowing-150x150.jpg 150w, http:\/\/documentation.particleflocker.com\/wp-content\/uploads\/WallFollowing.jpg 350w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/>Wall following is a variation of <a href=\"http:\/\/documentation.particleflocker.com\/?docs=flocking-systems\/steering-behaviours\/path-following\">path following<\/a> and\u00a0causes boids to move along the surface of a geometric shape.<\/p>\n<p>At each simulation step boids will look along their current direction and determine if they are likely to collide with any geometry. If a potential collision is detected they will compute a new target a predetermined distance away from the surface of the geometry along the surface normal. They will then alter their steering to aim for that location as their new target.<\/p>\n<p>The same technique can also be used to ensure boids remain inside a geometric surface, and this type of behaviour is known as <a href=\"http:\/\/documentation.particleflocker.com\/?docs=flocking-systems\/steering-behaviours\/containment\">Containment<\/a>.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":46,"menu_order":5,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"doc_tag":[],"_links":{"self":[{"href":"http:\/\/documentation.particleflocker.com\/index.php?rest_route=\/wp\/v2\/docs\/52"}],"collection":[{"href":"http:\/\/documentation.particleflocker.com\/index.php?rest_route=\/wp\/v2\/docs"}],"about":[{"href":"http:\/\/documentation.particleflocker.com\/index.php?rest_route=\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"http:\/\/documentation.particleflocker.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/documentation.particleflocker.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=52"}],"version-history":[{"count":6,"href":"http:\/\/documentation.particleflocker.com\/index.php?rest_route=\/wp\/v2\/docs\/52\/revisions"}],"predecessor-version":[{"id":763,"href":"http:\/\/documentation.particleflocker.com\/index.php?rest_route=\/wp\/v2\/docs\/52\/revisions\/763"}],"up":[{"embeddable":true,"href":"http:\/\/documentation.particleflocker.com\/index.php?rest_route=\/wp\/v2\/docs\/46"}],"next":[{"title":"Containment","link":"http:\/\/documentation.particleflocker.com\/?docs=flocking-systems\/steering-behaviours\/containment","href":"http:\/\/documentation.particleflocker.com\/index.php?rest_route=\/wp\/v2\/docs\/759"}],"prev":[{"title":"Path Following","link":"http:\/\/documentation.particleflocker.com\/?docs=flocking-systems\/steering-behaviours\/path-following","href":"http:\/\/documentation.particleflocker.com\/index.php?rest_route=\/wp\/v2\/docs\/51"}],"wp:attachment":[{"href":"http:\/\/documentation.particleflocker.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=52"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"http:\/\/documentation.particleflocker.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=52"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}