{"id":355,"date":"2018-11-15T23:59:46","date_gmt":"2018-11-15T14:59:46","guid":{"rendered":"http:\/\/reasty.net\/?p=355"},"modified":"2018-11-15T23:59:46","modified_gmt":"2018-11-15T14:59:46","slug":"unity-basic-parts-2","status":"publish","type":"post","link":"https:\/\/reasty.net\/?p=355","title":{"rendered":"Unity basic parts (2) &#8211; 3D \ucd1d\uc54c\ud53c\ud558\uae30 \uac8c\uc784 \ub9cc\ub4e4\uae30(1)"},"content":{"rendered":"<p>\uac15\uc758\uac00 \uc774\ub860 \uc704\uc8fc\ub85c \uc9c4\ud589\ub418\ub294\uac8c \uc544\ub2c8\ub77c \uc2e4\uc2b5\uc704\uc8fc\ub85c \uc9c4\ud589\ub418\ub2e4\ubcf4\ub2c8, \ub0b4\uac00 \ubcc4\ub3c4\ub85c \uc815\ub9ac\uac00 \ud798\ub4e4\ub2e4.<br \/>\n\uc2e4\uc2b5\ud558\uba74\uc11c \uba54\ubaa8\ud588\ub358 \ub0b4\uc6a9\uc744 \uae30\ubc18\uc73c\ub85c \ub178\ud2b8\ud615\ud0dc\ub85c \uc815\ub9ac\ud574\uc57c \uaca0\ub2e4.<\/p>\n<p>\uc624\ub298\uc740 2\uc77c\uc9f8. 3D \ucd1d\uc54c\ud53c\ud558\uae30 \uac8c\uc784 \ub9cc\ub4e4\uae30 \uc774\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-389 size-large\" src=\"http:\/\/192.168.10.240:8080\/wp-content\/uploads\/2018\/12\/Dodge_1-1024x555.png\" alt=\"\" width=\"625\" height=\"339\" srcset=\"https:\/\/reasty.net\/wp-content\/uploads\/2018\/12\/Dodge_1-1024x555.png 1024w, https:\/\/reasty.net\/wp-content\/uploads\/2018\/12\/Dodge_1-300x163.png 300w, https:\/\/reasty.net\/wp-content\/uploads\/2018\/12\/Dodge_1-768x416.png 768w, https:\/\/reasty.net\/wp-content\/uploads\/2018\/12\/Dodge_1-1536x832.png 1536w, https:\/\/reasty.net\/wp-content\/uploads\/2018\/12\/Dodge_1.png 1920w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/p>\n<p>[Material].Albedo : \ube5b\uc5d0 \ubc18\uc0ac\ub418\ub294 \uc0c9\uae54\uc744 \uc124\uc815\ud55c\ub2e4. <a href=\"https:\/\/ko.wikipedia.org\/wiki\/%EB%B0%98%EC%82%AC%EC%9C%A8\" target=\"_blank\" rel=\"noopener\">\ubc18\uc0ac\uc728-Albedo<\/a>\uc774\ub77c\uace0\ub3c4 \ud558\uba70, \uc790\uc138\ud55c \uc124\uba85\uc740 \uc704\ud0a4\ucc38\uc870.<\/p>\n<p>[Camera].Clear Flags<br \/>\nSkybox : \uac00\uc0c1\uc758 \ud558\ub298\uc744 \uadf8\ub9b0\ub2e4.<br \/>\nSolid Color : \ub2e8\uc0c9\uc73c\ub85c \ucc44\uc6b4\ub2e4.<br \/>\nDepth Only : ??<br \/>\nDon&#8217;t Clear : ??<\/p>\n<p>[Rigidbody] : \uc2e4\uc81c \ubb3c\ub9ac\uc801\uc778 \ubaa8\ub4e0 \uae30\ub2a5\uc744 \ub2f4\ub2f9\ud558\ub294 \ucef4\ud3ec\ub10c\ud2b8. 2D\uc5d0 \ub300\ud574\uc11c\ub294 Rigidbody 2D \ucef4\ud3ec\ub10c\ud2b8\ub97c \uc0ac\uc6a9\ud55c\ub2e4.<\/p>\n<p>[Input]<\/p>\n<pre class=\"lang:c# decode:true \">Input.GetKey(KeyCode); \/\/ \ud0a4\ub97c \ub204\ub974\uace0 \uc788\ub2e4\uba74 true, \uc544\ub2c8\uba74 false\ub97c \ub9ac\ud134\n\n\/\/ W \ud0a4\ub97c \ub20c\ub800\uc744\ub54c speed \ub9cc\ud07c Z \ucd95\uc73c\ub85c \uc774\ub3d9\uc2dc\ud0a8\ub2e4.\nif (Input.GetKey(KeyCode.W) == true)\n{\n    playerRigibody.AddForce(0,0,speed);\n}\n\n\/\/ \ucd95 \uae30\uc900 \uc785\ub825\uac12\uc744 \uac00\uc838\uc628\ub2e4.\n\/\/ A &lt;-            D -&gt;\n\/\/ -1.0    0.0    +1.0\nfloat xInput = Input.GetAxis(\"Horizontal\");\n\/\/ S v             W ^\n\/\/ -1.0    0.0    +1.0\nfloat zInput = Input.GetAxis(\"Vertical\");\n\n\/\/ \uc2e4\uc81c \uc774\ub3d9 \uc18d\ub3c4\ub97c \uc785\ub825\uac12\uacfc \uc774\ub3d9 \uc18d\ub825\uc744 \ud1b5\ud574 \uacb0\uc815\nfloat xSpeed = xInput * speed;\nfloat zSpeed = zInput * speed;\n\n\/\/ \ub9ac\uc9c0\ub4dc\ubc14\ub514\uc758 \uc18d\ub3c4\uc5d0 newVelocity \ud560\ub2f9\nVector3 newVelocity = new Vector3(xSpeed, 0f, zSpeed);\nplayerRigibody.velocity = newVelocity;<\/pre>\n<p>\uc218\ud3c9\ucd95\uacfc \uc218\uc9c1\ucd95\uc758 \uc785\ub825\uac12\uc744 \uac10\uc9c0\ud558\uc5ec \uc800\uc7a5<br \/>\nGetAxis\ub294 \uc785\ub825\ucd95\uc758 \uc74c\uc758 \ubc29\ud5a5\uc758 \ud0a4 : -1.0<br \/>\n\uc544\ubb34\uac83\ub3c4 \ub204\ub974\uc9c0 \uc54a\uc73c\uba74 : 0.0<br \/>\n\uc591\uc758 \ubc29\ud5a5\uc758 \ud0a4 : +1.0<\/p>\n<p><strong>\uc774\ub7ec\ud55c \ubc29\uc2dd\uc744 \uc4f0\ub294 \uc774\uc720<\/strong><br \/>\n&#8211; \uc0ac\uc6a9\uc790\uac00 \ud0a4 \ubcc0\uacbd\uc744 \ud560\uc218 \uc788\uac8c \ud558\uae30 \uc704\ud574.<br \/>\n&#8211; \ucf54\ub4dc\uac00 \ud558\ub4dc\uc6e8\uc5b4\uc5d0 \ub300\ud55c \uc885\uc18d\uc131\uc744 \uac00\uc9c0\uc9c0 \uc54a\uae30 \uc704\ud574.<br \/>\n&#8211; \ud0a4\ubcf4\ub4dc \ucee4\uc2a4\ud130\ub9c8\uc774\uc9d5\uc744 \ud3b8\ud558\uac8c \ud560 \uc218 \uc788\ub2e4.<br \/>\n&#8211; \ucf54\ub4dc\ub791 \uc785\ub825\uc758 \uc774\ub984\uc774 \uc5f0\uacb0\ub418\uc5b4\uc788\uace0, \uc785\ub825\uc774 \ud558\ub4dc\uc6e8\uc5b4\ub85c \uc5f0\uacb0\ub418\uc5b4 \uc788\ub2e4.<br \/>\n&#8211; \uc870\uc774\uc2a4\ud2f1\uc5d0 \ub300\uc751 : Axis, \uc785\ub825\uc744 \uc22b\uc790\ub85c \ubc1b\ub294 \uc774\uc720\ub294 \uc870\uc774\uc2a4\ud2f1\uc740 \uc57d\uac04\ub9cc \ub204\ub978\ub2e4\ub358\uc9c0, \uadf8\ub7ec\ud55c \ucee8\ud2b8\ub864\uc774 \uac00\ub2a5\ud558\uae30 \ub54c\ubb38<\/p>\n<p><strong>\ud504\ub85c\uc81d\ud2b8 \uc138\ud305 \uba54\ub274\uc5d0\uc11c Input\uc5d0 \uad00\ud55c \uc124\uc815\uc774 \uac00\ub2a5<\/strong><br \/>\n[Menu] &#8211; [Edit] &#8211; [Project Settings] &#8211; [Input]<br \/>\nInputManager : Axes,Horizontal,Vertical<\/p>\n<p><a href=\"https:\/\/ko.wikipedia.org\/wiki\/%EA%B0%80%EC%86%8D%EB%8F%84\" target=\"_blank\" rel=\"noopener\">\uac00\uc18d\ub3c4<\/a> : \ud798\uc744 \uc9c8\ub7c9\uc73c\ub85c \ub098\ub208\uac12. \uc5ed\uc2dc\ub098 \uc790\uc138\ud55c \uc124\uba85\uc740 \uc704\ud0a4\ucc38\uc870.<br \/>\nF = ma<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uac15\uc758\uac00 \uc774\ub860 \uc704\uc8fc\ub85c \uc9c4\ud589\ub418\ub294\uac8c \uc544\ub2c8\ub77c \uc2e4\uc2b5\uc704\uc8fc\ub85c \uc9c4\ud589\ub418\ub2e4\ubcf4\ub2c8, \ub0b4\uac00 \ubcc4\ub3c4\ub85c \uc815\ub9ac\uac00 \ud798\ub4e4\ub2e4. \uc2e4\uc2b5\ud558\uba74\uc11c \uba54\ubaa8\ud588\ub358 \ub0b4\uc6a9\uc744 \uae30\ubc18\uc73c\ub85c \ub178\ud2b8\ud615\ud0dc\ub85c \uc815\ub9ac\ud574\uc57c \uaca0\ub2e4. \uc624\ub298\uc740 2\uc77c\uc9f8. 3D \ucd1d\uc54c\ud53c\ud558\uae30 \uac8c\uc784 \ub9cc\ub4e4\uae30 \uc774\ub2e4. [Material].Albedo : \ube5b\uc5d0 \ubc18\uc0ac\ub418\ub294 \uc0c9\uae54\uc744 \uc124\uc815\ud55c\ub2e4. \ubc18\uc0ac\uc728-Albedo\uc774\ub77c\uace0\ub3c4 \ud558\uba70, \uc790\uc138\ud55c \uc124\uba85\uc740 \uc704\ud0a4\ucc38\uc870. [Camera].Clear Flags Skybox : \uac00\uc0c1\uc758 \ud558\ub298\uc744 \uadf8\ub9b0\ub2e4. Solid Color : \ub2e8\uc0c9\uc73c\ub85c \ucc44\uc6b4\ub2e4. Depth Only : ?? Don&#8217;t Clear : ?? [Rigidbody] : \uc2e4\uc81c \ubb3c\ub9ac\uc801\uc778&#8230; <a href=\"https:\/\/reasty.net\/?p=355\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9,11],"tags":[21,45],"class_list":["post-355","post","type-post","status-publish","format-standard","hentry","category-study","category-unity","tag-c","tag-unity"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/reasty.net\/index.php?rest_route=\/wp\/v2\/posts\/355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/reasty.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/reasty.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/reasty.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/reasty.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=355"}],"version-history":[{"count":0,"href":"https:\/\/reasty.net\/index.php?rest_route=\/wp\/v2\/posts\/355\/revisions"}],"wp:attachment":[{"href":"https:\/\/reasty.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/reasty.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/reasty.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}