{"id":235,"date":"2020-02-21T12:07:02","date_gmt":"2020-02-21T12:07:02","guid":{"rendered":"https:\/\/kituneproject.com\/?p=235"},"modified":"2020-02-21T12:07:04","modified_gmt":"2020-02-21T12:07:04","slug":"post-235","status":"publish","type":"post","link":"https:\/\/kituneproject.com\/?p=235","title":{"rendered":"Unity\u3067FPS\u98a8\u306e\u30ab\u30e1\u30e9\u3092\u4f5c\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u3053\u3093\u306b\u3061\u306f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Blender\u306e\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u4f5c\u6210\u304c\u3001\u306a\u304b\u306a\u304b\u3046\u307e\u304f\u3044\u304b\u305a\u3001\u5c11\u3057\u306e\u9593\u4e2d\u6b62\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4eca\u56de\u306f\u3001Unity\u3067\u3001FPS\u98a8\u306e\u30ab\u30e1\u30e9\u3092\u4f5c\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-189-1024x576.png\" alt=\"\" class=\"wp-image-237\" srcset=\"https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-189-1024x576.png 1024w, https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-189-300x169.png 300w, https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-189-768x432.png 768w, https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-189.png 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305a\u5e8a\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Plane\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-190-1024x576.png\" alt=\"\" class=\"wp-image-239\" srcset=\"https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-190-1024x576.png 1024w, https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-190-300x169.png 300w, https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-190-768x432.png 768w, https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-190.png 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u5e8a\u3092\u5927\u304d\u304f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-191-1024x576.png\" alt=\"\" class=\"wp-image-240\" srcset=\"https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-191-1024x576.png 1024w, https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-191-300x169.png 300w, https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-191-768x432.png 768w, https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-191.png 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b21\u306b\u3001\u30d7\u30ec\u30a4\u30e4\u30fc\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Capsule\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-192-1024x576.png\" alt=\"\" class=\"wp-image-241\" srcset=\"https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-192-1024x576.png 1024w, https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-192-300x169.png 300w, https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-192-768x432.png 768w, https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-192.png 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">c# Script\u3092\u9078\u629e\u3057\u3066\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4eca\u56de\u306f\u3001\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092player\u3068\u3044\u3046\u540d\u524d\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u305d\u306eplayer\u306e\u4e2d\u306b\u3053\u306e\u30b3\u30fc\u30c9\u3092\u5165\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>using System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\n\npublic class player : MonoBehaviour {\n\tpublic float walk = 0.05f;\n\tpublic float run = 0.1f;\n\tpublic Vector2 beforemouse;\n\tpublic Vector2 aftermouse;\n\t\/\/ Use this for initialization\n\tvoid Start () {\n\t\tbeforemouse = Input.mousePosition;\n\t\taftermouse = Input.mousePosition;\n\t}\n\t\n\t\/\/ Update is called once per frame\n\tvoid FixedUpdate () {\n\t\taftermouse = Input.mousePosition;\n\t\tif (beforemouse == aftermouse) {\n\n\t\t} else {\n\t\t\tthis.transform.rotation = Quaternion.Euler (0, aftermouse.x - beforemouse.x, 0);\n\n\t\t}\n\n\n\t\tif (Input.GetKey (KeyCode.W)) {\n\n\t\t\tif (Input.GetKey (KeyCode.LeftShift)) {\n\t\t\t\tthis.transform.Translate (0f, 0f, run);\n\t\t\t} else {\n\t\t\t\tthis.transform.Translate (0f, 0f, walk);\n\t\t\t}\n\t\t}\n\t\tif (Input.GetKey (KeyCode.S)) {\n\n\t\t\tif (Input.GetKey (KeyCode.LeftShift)) {\n\t\t\t\tthis.transform.Translate (0f, 0f, - run);\n\t\t\t} else {\n\t\t\t\tthis.transform.Translate (0f, 0f, - walk);\n\t\t\t}\n\t\t}\n\t\tif (Input.GetKey (KeyCode.A)) {\n\n\t\t\tif (Input.GetKey (KeyCode.LeftShift)) {\n\t\t\t\tthis.transform.Translate (- run, 0f, 0f);\n\t\t\t} else {\n\t\t\t\tthis.transform.Translate (- walk, 0f, 0f);\n\t\t\t}\n\t\t}\n\t\tif (Input.GetKey (KeyCode.D)) {\n\n\t\t\tif (Input.GetKey (KeyCode.LeftShift)) {\n\t\t\t\tthis.transform.Translate (run, 0f, 0f);\n\t\t\t} else {\n\t\t\t\tthis.transform.Translate (walk, 0f, 0f);\n\t\t\t}\n\t\t}\n\t}\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">public class player : MonoBehaviour {\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u540d\u524d\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">if (Input.GetKey (KeyCode.W)) {\u304b\u3089\u306f\u3001\u79fb\u52d5\u306e\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30b3\u30fc\u30c9\u306e\u4ed5\u7d44\u307f\u306f\u3001\u30d5\u30ec\u30fc\u30e0\u3054\u3068\u306b\u3001\u30de\u30a6\u30b9\u306e\u4f4d\u7f6e\u3092\u66f4\u65b0\u3057\u3066\u3001\u30de\u30a6\u30b9\u306e\u4f4d\u7f6e\u306b\u3088\u3063\u3066\u3001\u4e3b\u4eba\u516c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u56de\u8ee2\u3055\u305b\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-193-1024x576.png\" alt=\"\" class=\"wp-image-243\" srcset=\"https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-193-1024x576.png 1024w, https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-193-300x169.png 300w, https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-193-768x432.png 768w, https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-193.png 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f5c\u3063\u305f\u30b3\u30fc\u30c9\u3092\u4e3b\u4eba\u516c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u3001\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-194-1024x576.png\" alt=\"\" class=\"wp-image-245\" srcset=\"https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-194-1024x576.png 1024w, https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-194-300x169.png 300w, https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-194-768x432.png 768w, https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-194.png 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b21\u306b\u3001\u4e3b\u4eba\u516c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092Add component\u304b\u3089\u3001Rigidbody\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-198-1024x576.png\" alt=\"\" class=\"wp-image-246\" srcset=\"https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-198-1024x576.png 1024w, https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-198-300x169.png 300w, https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-198-768x432.png 768w, https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-198.png 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Freese Rotation\u306eY\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-199-1024x576.png\" alt=\"\" class=\"wp-image-249\" srcset=\"https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-199-1024x576.png 1024w, https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-199-300x169.png 300w, https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-199-768x432.png 768w, https:\/\/kituneproject.com\/wp-content\/uploads\/2020\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-199.png 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u5f8c\u306b\u3001Main Camera\u3092\u4e3b\u4eba\u516c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u3001\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">\u6210\u529f\u3057\u305f\u3089\u3001\u5b9f\u884c\u3057\u3066\u30de\u30a6\u30b9\u3092\u52d5\u304b\u3059\u3068\u3001\u30ab\u30e1\u30e9\u3082\u52d5\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002 Blender\u306e\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u4f5c\u6210\u304c\u3001\u306a\u304b\u306a\u304b\u3046\u307e\u304f\u3044\u304b\u305a\u3001\u5c11\u3057\u306e\u9593\u4e2d\u6b62\u3057\u307e\u3059\u3002 \u4eca\u56de\u306f\u3001Unity\u3067\u3001FPS\u98a8\u306e\u30ab\u30e1\u30e9\u3092\u4f5c\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002 \u307e\u305a\u5e8a\u3092\u4f5c\u308a\u307e\u3059\u3002 Plane\u3092\u9078\u629e\u3057\u307e\u3059\u3002 \u5e8a\u3092\u5927\u304d\u304f\u3057\u307e\u3059 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,6],"tags":[27,4],"class_list":["post-235","post","type-post","status-publish","format-standard","hentry","category-unity","category-6","tag-fps","tag-unity"],"_links":{"self":[{"href":"https:\/\/kituneproject.com\/index.php?rest_route=\/wp\/v2\/posts\/235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kituneproject.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kituneproject.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kituneproject.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kituneproject.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=235"}],"version-history":[{"count":9,"href":"https:\/\/kituneproject.com\/index.php?rest_route=\/wp\/v2\/posts\/235\/revisions"}],"predecessor-version":[{"id":252,"href":"https:\/\/kituneproject.com\/index.php?rest_route=\/wp\/v2\/posts\/235\/revisions\/252"}],"wp:attachment":[{"href":"https:\/\/kituneproject.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kituneproject.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kituneproject.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}