{"id":3882,"date":"2018-06-03T00:18:38","date_gmt":"2018-06-02T15:18:38","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=3882"},"modified":"2018-06-10T18:56:31","modified_gmt":"2018-06-10T09:56:31","slug":"%e3%80%90unity%e3%80%91%e3%80%8cphysics%ef%bc%9a%e7%89%a9%e7%90%86%e3%82%a8%e3%83%b3%e3%82%b8%e3%83%b3%e3%80%8d%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=3882","title":{"rendered":"\u3010Unity\u3011\u300cPhysics\uff1a\u7269\u7406\u30a8\u30f3\u30b8\u30f3\u300d\u306b\u3064\u3044\u3066"},"content":{"rendered":"<h2>Physics\u3068\u306f\uff1f<\/h2>\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u7269\u7406\u7684\u306a\u6319\u52d5\u306b\u3057\u305f\u304c\u3063\u3066\u3001\u30a8\u30df\u30e5\u30ec\u30fc\u30c8\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308bUnity\u306e\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u4e00\u3064\u3067\u3059\u3002<\/p>\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u300c\u8cea\u91cf\u300d\u3001\u300c\u5f62\u300d\u3001\u300c\u5927\u304d\u3055\u300d\u3084\u3001\u300c\u6469\u64e6\u4fc2\u6570\u300d\u3001\u300c\u91cd\u529b\u300d\u3092\u8003\u616e\u3057\u3066\u3001\u52d5\u304d\u3092\u8a08\u7b97\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<p>\u300c\u7269\u7406\u306e\u529b\u5b66\u300d\u3068\u805e\u304f\u3068\u3001\u591a\u304f\u306e\u65b9\u304c\u96e3\u3057\u305d\u3046\u3068\u8eab\u69cb\u3048\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001<span style=\"color: #ff0000;\"><strong>\u3053\u306e\u7269\u7406\u30a8\u30f3\u30b8\u30f3\u304c\u305d\u306e\u96e3\u3057\u3044\u90e8\u5206\u3092\u8986\u3044\u96a0\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u3001\u7279\u306b\u7269\u7406\u306e\u5c02\u9580\u77e5\u8b58\u304c\u306a\u304f\u3066\u3082\u7c21\u5358\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd<\/strong><\/span>\u306a\u306e\u3067\u3059\u3002<\/p>\n<h2>Physics\u306e\u69cb\u6210\u8981\u7d20<\/h2>\n<p>\u4e0b\u8a18\u306e\u4e8c\u3064\u304b\u3089\u69cb\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<ul>\n<li>Rigidbody\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8<\/li>\n<li>Collider\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8<\/li>\n<\/ul>\n<h3>Rigidbody\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\uff08Rigidbody 2D)<\/h3>\n<p>\u7269\u4f53\u306b\u50cd\u304f\u3001<span style=\"color: #ff0000;\"><strong>\u300c\u91cd\u529b\u3084\u6469\u64e6\u7b49\u306e\u8a08\u7b97\u300d<\/strong><\/span>\u3092\u62c5\u5f53\u3057\u307e\u3059\u3002<\/p>\n<h3>\u8a2d\u5b9a\u5024<\/h3>\n<table>\n<tbody>\n<tr>\n<th width=\"150\">\u9805\u76ee<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>Gravity Scale<\/td>\n<td><span style=\"color: #ff0000;\"><strong>\u91cd\u529b\u306e\u5f71\u97ff\u3092\u3069\u308c\u304f\u3089\u3044\u53d7\u3051\u308b\u304b<\/strong><\/span>\u306e\u5024\u3002\uff08\u300c1\u300d\u306b\u3059\u308b\u3068\u5730\u7403\u4e0a\u3068\u540c\u3058\u91cd\u529b\u3092\u53d7\u3051\u308b\u3002\u300c\uff10\u300d\u306b\u3059\u308b\u3068\u91cd\u529b\u306e\u5f71\u97ff\u3092\u53d7\u3051\u306a\u3044\u306e\u3067\u3001\u9759\u7684\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308b\u5834\u5408\u306f0\u306b\u3059\u308b\u3002\uff09<\/td>\n<\/tr>\n<tr>\n<td>Body Type<\/td>\n<td>\u7269\u4f53\u306e\u30bf\u30a4\u30d7\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002Dynamic(\u7269\u7406\u6f14\u7b97\u3067\u79fb\u52d5)\u3001Kinematic(\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u52d5\u304b\u3059\u5834\u5408)\u3001Static(\u52d5\u304b\u3055\u306a\u3044\u7269\u4f53\u306e\u5834\u5408)\u304b\u3089\u9078\u629e\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>Material<\/td>\n<td>\u7d20\u6750\u306e\u7279\u6027\uff08\u6469\u64e6\u529b\u3001\u53cd\u767a\u529b\uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>Simulated<\/td>\n<td>\u7269\u7406\u6f14\u7b97\u3068\u885d\u7a81\u5224\u5b9a\u306e\u30aa\u30f3\u30aa\u30d5\u3092\u5207\u308a\u66ff\u3048\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>Use Auto Mass<\/td>\n<td>\u30aa\u30f3\u306b\u3059\u308b\u3068\u3001\u30b3\u30e9\u30a4\u30c0\u30fc\u306e\u5f62\u72b6\u304b\u3089\u8cea\u91cf\u3092\u81ea\u52d5\u7684\u306b\u7b97\u51fa\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>Mass<\/td>\n<td>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u8cea\u91cf\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u5927\u304d\u306a\u7269\u4f53\u3092\u52d5\u304b\u3059\u306e\u306b\u3082\u3001\u6b62\u3081\u308b\u306e\u306b\u3082\u5927\u304d\u306a\u529b\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>Linear Drag<\/td>\n<td>\u79fb\u52d5\u306e\u6e1b\u8870\u5024\u3001\u5024\u3092\u5927\u304d\u304f\u3059\u308b\u3068\u5f90\u3005\u306b\u6e1b\u8870\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>Angular Drag<\/td>\n<td>\u56de\u8ee2\u306e\u6e1b\u8870\u5024\u3001\u5024\u3092\u5927\u304d\u304f\u3059\u308b\u3068\u5f90\u3005\u306b\u6e1b\u8870\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>Collision Detection<\/td>\n<td>\u4ed6\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u306e\u885d\u7a81\u691c\u77e5\u306e\u65b9\u6cd5<\/td>\n<\/tr>\n<tr>\n<td>Sleeping Mode<\/td>\n<td>\u30b9\u30ea\u30fc\u30d7\u8a2d\u5b9a\u306b\u306a\u308a\u307e\u3059\u3002\u300cNever Sleep(\u30b9\u30ea\u30fc\u30d7\u7121\u52b9)\u300d\u3001\u300cStart Sleep(\u8d77\u52d5\u306f\u8d77\u304d\u305f\u72b6\u614b\u3001\u52d5\u304b\u306a\u3051\u308c\u3070\u30b9\u30ea\u30fc\u30d7)\u300d\u3001\u300cStart ASleep(\u521d\u671f\u72b6\u614b\u30b9\u30ea\u30fc\u30d7\u3001\u885d\u7a81\u306b\u3088\u308a\u30b9\u30ea\u30fc\u30d7\u3059\u308b\u3002)\u300d<\/td>\n<\/tr>\n<tr>\n<td>Interpolate<\/td>\n<td>\u30b9\u30e0\u30fc\u30b8\u30f3\u30b0\u306e\u8a2d\u5b9a\u3001\u51e6\u7406\u306e\u91cd\u3055\u7b49\u304c\u539f\u56e0\u3067\u52d5\u304d\u304c\u304e\u3053\u3061\u306a\u304f\u306a\u308b\u3053\u3068\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>Constraints<\/td>\n<td>\u79fb\u52d5\u3001\u56de\u8ee2\u5236\u9650\u3001\u300cX\u300d\u304b\u300cY\u300d\u3092\u30aa\u30f3\u306b\u3059\u308b\u3068\u305d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u7e26\u304b\u6a2a\u304b\u3057\u304b\u79fb\u52d5\u3057\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u300cZ\u300d\u3092\u30aa\u30f3\u306b\u3059\u308b\u3068\u3001\u305d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u79fb\u52d5\u3057\u3066\u3082\u56de\u8ee2\u3057\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Collider(\u30b3\u30e9\u30a4\u30c0)\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8<\/h3>\n<p>\u7269\u4f53\u3078\u306e<span style=\"color: #ff0000;\"><strong>\u300c\u5f53\u305f\u308a\u5224\u5b9a\u300d<\/strong><\/span>\u3092\u62c5\u5f53\u3057\u307e\u3059\u3002\u5f53\u305f\u308a\u5224\u5b9a\u306e\u7a2e\u985e\u306b\u3088\u3063\u3066\u3001\u8272\u3005\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u5206\u304b\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<th width=\"150\">\u30b3\u30e9\u30a4\u30c0\u306e\u7a2e\u985e<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>Circle Collider 2D<\/td>\n<td>\u5186\u5f62\u306e\u5f53\u305f\u308a\u5224\u5b9a\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>Box Collider 2D<\/td>\n<td>\u56db\u89d2\u5f62\u306e\u5f53\u305f\u308a\u5224\u5b9a\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>Edge Collider 2D<\/td>\n<td>\u7dda\u5f62\u306e\u5f53\u305f\u308a\u5224\u5b9a\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>Polygon Collider 2D<\/td>\n<td>\u591a\u89d2\u5f62\u306e\u5f53\u305f\u308a\u5224\u5b9a\u3092\u751f\u6210\u3057\u307e\u3059\u3002\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u30d5\u30a3\u30c3\u30c8\u3059\u308b\u8907\u96d1\u306a\u3042\u305f\u308a\u5224\u5b9a\u3092\u751f\u6210\u3067\u304d\u307e\u3059\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>\u300cCircle Collider 2D\u300d\u306e\u8a2d\u5b9a\u5024<\/h4>\n<table>\n<tbody>\n<tr>\n<th>\u9805\u76ee<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>Radius<\/td>\n<td>\u5186\u306e\u534a\u5f84\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Physics\u306e\u7528\u9014<\/h2>\n<p>\u300cCollider\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u300d\u306e\u6a5f\u80fd\u306b\u3088\u3063\u3066\u3001\u7269\u4f53\u306e\u5f53\u305f\u308a\u5224\u5b9a\u3092\u81ea\u52d5\u3067\u884c\u3063\u3066\u304f\u308c\u308b\u306e\u3067\u3001\u300c\u30a2\u30af\u30b7\u30e7\u30f3\u30b2\u30fc\u30e0\u300d\u3084\u3001\u300c\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u30b2\u30fc\u30e0\u300d\u7b49\u306b\u6d3b\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>Physics\u306e\u843d\u3068\u3057\u7a74<\/h2>\n<p>\u5358\u7d14\u306a\u7269\u7406\u6cd5\u5247\u306b\u6cbf\u3063\u305f\u52d5\u4f5c\u306a\u3089\u3088\u3044\u306e\u3067\u3059\u304c\u3001\u5c11\u3057\u8907\u96d1\u306a\u52d5\u4f5c\u3092\u5b9f\u88c5\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001Physics\u3067\u306f\u7269\u8db3\u308a\u306a\u304f\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001Physics\u3092\u8a66\u3057\u3066\u307f\u3066\u3082\u3088\u3044\u3067\u3059\u304c\u3001\u30c0\u30e1\u3067\u3042\u308c\u3070\u7269\u7406\u6cd5\u5247\u90e8\u5206\u306e\u30ed\u30b8\u30c3\u30af\u306f\u81ea\u4f5c\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Physics\u3068\u306f\uff1f \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u7269\u7406\u7684\u306a\u6319\u52d5\u306b\u3057\u305f\u304c\u3063\u3066\u3001\u30a8\u30df\u30e5\u30ec\u30fc\u30c8\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308bUnity\u306e\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u4e00\u3064\u3067\u3059\u3002 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u300c\u8cea\u91cf\u300d\u3001\u300c\u5f62\u300d\u3001\u300c\u5927\u304d\u3055\u300d\u3084\u3001\u300c\u6469\u64e6\u4fc2\u6570\u300d\u3001\u300c\u91cd\u529b\u300d\u3092\u8003\u616e\u3057\u3066\u3001\u52d5\u304d\u3092\u8a08 [&hellip;]","protected":false},"author":1,"featured_media":3779,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[42],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/3882"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3882"}],"version-history":[{"count":17,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/3882\/revisions"}],"predecessor-version":[{"id":4033,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/3882\/revisions\/4033"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/media\/3779"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3882"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3882"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3882"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}