{"id":759,"date":"2017-07-18T23:15:03","date_gmt":"2017-07-18T22:15:03","guid":{"rendered":"http:\/\/documentation.particleflocker.com\/?post_type=docs&#038;p=759"},"modified":"2017-07-18T23:18:01","modified_gmt":"2017-07-18T22:18:01","slug":"containment","status":"publish","type":"docs","link":"http:\/\/documentation.particleflocker.com\/?docs=flocking-systems\/steering-behaviours\/containment","title":{"rendered":"Containment"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"alignright wp-image-760 size-medium\" src=\"http:\/\/documentation.particleflocker.com\/wp-content\/uploads\/Containment-300x300.jpg\" alt=\"\" width=\"300\" height=\"300\" srcset=\"http:\/\/documentation.particleflocker.com\/wp-content\/uploads\/Containment-300x300.jpg 300w, http:\/\/documentation.particleflocker.com\/wp-content\/uploads\/Containment-150x150.jpg 150w, http:\/\/documentation.particleflocker.com\/wp-content\/uploads\/Containment.jpg 350w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/>Containment is a form of <a href=\"http:\/\/documentation.particleflocker.com\/?docs=flocking-systems\/steering-behaviours\/wall-following\">Wall Following<\/a> behaviour in which particles are contained within a volume shape. This type of behaviour can be useful to model situations such as fish swimming within a fishbowl or being caught within a fishing net for example.<\/p>\n<p>Boids will move around their environment as normal, but if they detect a potential collision with a surface of the containing volume they will take corrective action to avoid it by choosing a new target projected away from the container&#8217;s surface normal.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":46,"menu_order":6,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"doc_tag":[],"_links":{"self":[{"href":"http:\/\/documentation.particleflocker.com\/index.php?rest_route=\/wp\/v2\/docs\/759"}],"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=759"}],"version-history":[{"count":4,"href":"http:\/\/documentation.particleflocker.com\/index.php?rest_route=\/wp\/v2\/docs\/759\/revisions"}],"predecessor-version":[{"id":765,"href":"http:\/\/documentation.particleflocker.com\/index.php?rest_route=\/wp\/v2\/docs\/759\/revisions\/765"}],"up":[{"embeddable":true,"href":"http:\/\/documentation.particleflocker.com\/index.php?rest_route=\/wp\/v2\/docs\/46"}],"prev":[{"title":"Wall Following","link":"http:\/\/documentation.particleflocker.com\/?docs=flocking-systems\/steering-behaviours\/wall-following","href":"http:\/\/documentation.particleflocker.com\/index.php?rest_route=\/wp\/v2\/docs\/52"}],"wp:attachment":[{"href":"http:\/\/documentation.particleflocker.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=759"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"http:\/\/documentation.particleflocker.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}