{"id":819,"date":"2015-12-04T00:24:04","date_gmt":"2015-12-04T00:24:04","guid":{"rendered":"http:\/\/faulknermano.com\/blog\/?p=819"},"modified":"2015-12-04T00:24:04","modified_gmt":"2015-12-04T00:24:04","slug":"unity-waypoint-scanning","status":"publish","type":"post","link":"http:\/\/faulknermano.com\/blog\/unity-waypoint-scanning\/","title":{"rendered":"Unity: Waypoint Scanning"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-820 size-full\" src=\"http:\/\/faulknermano.com\/blog\/wp-content\/uploads\/2015\/12\/waypoint_scanning.gif\" alt=\"waypoint_scanning\" width=\"600\" height=\"480\" \/><\/p>\n<p>First stages in implementing the waypoint scanning behaviour in waypoints. The idea is when a waypoint is reached, and this waypoint instructs the robot to scan, the robot picks up the waypoint&#8217;s <em>scan points<\/em>. Any number of &#8216;scan points&#8217; can be specified by parenting transforms under the main scan point object of that waypoint.<\/p>\n<p>The scanning movement is handled by the RobotMovementClass, not the RobotGameClass, though I&#8217;m still feeling it out whether that&#8217;s the best solution.<\/p>\n<p>On another note, I&#8217;ve modified the Game Pause\/Unpause behaviour by using SendMessage to NavMeshAgents instead of using if() conditions on their Update() callback; this is mainly because NavMeshAgent functions like Resume() are unintentionally getting called when they&#8217;re supposed to sit still!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>First stages in implementing the waypoint scanning behaviour in waypoints. The idea is when a waypoint is reached, and this waypoint instructs the robot to scan, the robot picks up the waypoint&#8217;s scan points. Any number of &#8216;scan points&#8217; can be specified by parenting transforms under the main scan point object of that waypoint. The [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[377,52,351],"tags":[369,400,399,407,404,406,372,204,408,403,402,352,405,401],"class_list":["post-819","post","type-post","status-publish","format-standard","hentry","category-3400ad","category-game-development","category-unity","tag-3400ad","tag-behaviour","tag-game-dev","tag-navmeshagent","tag-pause","tag-robotgameclass","tag-robotmovementclass","tag-scanning","tag-sendmessage","tag-time","tag-timeclass","tag-unity","tag-unpause","tag-waypoints"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1gtd2-dd","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/faulknermano.com\/blog\/wp-json\/wp\/v2\/posts\/819","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/faulknermano.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/faulknermano.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/faulknermano.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/faulknermano.com\/blog\/wp-json\/wp\/v2\/comments?post=819"}],"version-history":[{"count":1,"href":"http:\/\/faulknermano.com\/blog\/wp-json\/wp\/v2\/posts\/819\/revisions"}],"predecessor-version":[{"id":821,"href":"http:\/\/faulknermano.com\/blog\/wp-json\/wp\/v2\/posts\/819\/revisions\/821"}],"wp:attachment":[{"href":"http:\/\/faulknermano.com\/blog\/wp-json\/wp\/v2\/media?parent=819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/faulknermano.com\/blog\/wp-json\/wp\/v2\/categories?post=819"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/faulknermano.com\/blog\/wp-json\/wp\/v2\/tags?post=819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}