{"id":462,"date":"2014-11-22T22:16:13","date_gmt":"2014-11-22T13:16:13","guid":{"rendered":"http:\/\/nantoka.filmm.info\/blog\/?p=462"},"modified":"2014-11-22T22:16:22","modified_gmt":"2014-11-22T13:16:22","slug":"unity-%e3%82%b9%e3%83%94%e3%83%bc%e3%83%89%e6%a4%9c%e5%87%ba","status":"publish","type":"post","link":"https:\/\/nantoka.filmm.info\/blog\/?p=462","title":{"rendered":"Unity-\u30b9\u30d4\u30fc\u30c9\u691c\u51fa"},"content":{"rendered":"<p>\u30b9\u30d4\u30fc\u30c9\u3092\u691c\u51fa\u3057\u307e\u3059\uff0e\u30ad\u30e3\u30e9\u30af\u30bf\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u304c\u30a2\u30b5\u30a4\u30f3\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u5fc5\u9808\u3067\u3059\uff0e<\/p>\n<p>\u305d\u308c\u3068\u540c\u3058\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u30a2\u30b5\u30a4\u30f3\u3057\u3066\u304f\u3060\u3055\u3044\uff0e<\/p>\n<pre class=\"lang:default decode:true \">#pragma strict\r\n\r\nstatic var horizontalSpeed : float = 0.0;\r\n\r\nfunction Start () {\r\n\r\n}\r\n\r\nfunction Update () {\r\n    var controller : CharacterController = GetComponent(CharacterController);\r\n    var horizontalVelocity : Vector3 = controller.velocity;\r\n    horizontalVelocity = Vector3(controller.velocity.x, 0, controller.velocity.z);\r\n    \r\n    \/\/ The speed on the x-z plane ignoring any speed \r\n    horizontalSpeed = horizontalVelocity.magnitude;\r\n\r\n   \r\n  \/\/print(horizontalSpeed);\r\n  Debug.Log(horizontalSpeed);\r\n}<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b9\u30d4\u30fc\u30c9\u3092\u691c\u51fa\u3057\u307e\u3059\uff0e\u30ad\u30e3\u30e9\u30af\u30bf\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u304c\u30a2\u30b5\u30a4\u30f3\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u5fc5\u9808\u3067\u3059\uff0e \u305d\u308c\u3068\u540c\u3058\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u30a2\u30b5\u30a4\u30f3\u3057\u3066\u304f\u3060\u3055\u3044\uff0e #pragma strict static var horizontalSpeed : f &hellip; <a href=\"https:\/\/nantoka.filmm.info\/blog\/?p=462\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Unity-\u30b9\u30d4\u30fc\u30c9\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":[11,2],"tags":[],"class_list":["post-462","post","type-post","status-publish","format-standard","hentry","category-javascript","category-unity"],"_links":{"self":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/462","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=462"}],"version-history":[{"count":1,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/462\/revisions"}],"predecessor-version":[{"id":463,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/462\/revisions\/463"}],"wp:attachment":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}