{"id":1742,"date":"2016-09-20T19:44:01","date_gmt":"2016-09-20T10:44:01","guid":{"rendered":"http:\/\/nantoka.filmm.info\/blog\/?p=1742"},"modified":"2016-09-20T19:45:10","modified_gmt":"2016-09-20T10:45:10","slug":"navmeshagent%e4%b8%8a%e3%81%ae%e9%80%9f%e5%ba%a6%e6%a4%9c%e5%87%ba","status":"publish","type":"post","link":"https:\/\/nantoka.filmm.info\/blog\/?p=1742","title":{"rendered":"NavmeshAgent\u4e0a\u306e\u901f\u5ea6\u691c\u51fa"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>Rigidbody.veocity.magnitude\u3000\u3067\u901f\u5ea6\u306f\u51fa\u307e\u305b\u3093<\/p>\n<pre class=\"lang:default decode:true \">using UnityEngine;\r\nusing System.Collections;\r\n\r\npublic class enemyScript : MonoBehaviour {\r\n\r\n\tpublic NavMeshAgent eneCharaObj;\r\n\tpublic Animator enemyAnim;\r\n\r\n\tfloat enemySpeedFloat = 0f;\r\n\r\n\t\/\/ Use this for initialization\r\n\tvoid Start () {\r\n\t\r\n\t}\r\n\t\r\n\t\/\/ Update is called once per frame\r\n\tvoid Update () {\r\n\t\tenemySpeedFloat = eneCharaObj.velocity.sqrMagnitude;\r\n\t\tenemyAnim.SetFloat(\"enemySpeed\", enemySpeedFloat);\r\n\t\t\/\/Debug.Log (enemySpeedFloat);\r\n\t}\r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Rigidbody.veocity.magnitude\u3000\u3067\u901f\u5ea6\u306f\u51fa\u307e\u305b\u3093 using UnityEngine; using System.Collections; public class enemyScr &hellip; <a href=\"https:\/\/nantoka.filmm.info\/blog\/?p=1742\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">NavmeshAgent\u4e0a\u306e\u901f\u5ea6\u691c\u51fa<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,2],"tags":[],"class_list":["post-1742","post","type-post","status-publish","format-standard","hentry","category-c","category-unity"],"_links":{"self":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1742","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1742"}],"version-history":[{"count":1,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1742\/revisions"}],"predecessor-version":[{"id":1743,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1742\/revisions\/1743"}],"wp:attachment":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}