{"id":1933,"date":"2018-02-16T03:06:46","date_gmt":"2018-02-15T19:06:46","guid":{"rendered":"http:\/\/www.clonefactor.com\/wordpress\/?p=1933"},"modified":"2018-02-16T03:21:33","modified_gmt":"2018-02-15T19:21:33","slug":"implement-titanfall-jump-refactor-rewrite","status":"publish","type":"post","link":"https:\/\/www.clonefactor.com\/wordpress\/program\/unity3d\/1933\/","title":{"rendered":"Implement Titanfall jump [refactor->rewrite]"},"content":{"rendered":"<p>\u7e7c\u4e0a\u7bc7 :\u00a0<a href=\"http:\/\/www.clonefactor.com\/wordpress\/public\/1929\/\">http:\/\/www.clonefactor.com\/wordpress\/public\/1929\/<\/a><\/p>\n<p>\u525b\u628a\u6574\u500b\u8dd1\u7246\u6253\u6389\u91cd\u7df4.<\/p>\n<div>\u5176\u5be6\u96e3\u7684\u4e26\u4e0d\u662f\u5982\u4f55\u7528\u7269\u7406\u4f86&#8221;\u8df3&#8221;. \u800c\u662f\u7406\u89e3\u5982\u4f55\u64cd\u4f5c\u6240\u6709\u7684 velocity<\/div>\n<div>\u5206\u62c6\u4e09\u8ef8,\u5229\u7528\u00a0Projection, normal \u7b49\u7b49\u62bd\u96e2\u4e0d\u540c\u7684\u901f\u5ea6,\u4ee5\u53ca\u6709\u689d\u4ef6\u5730\u5beb\u5165\u4e0d\u540c\u5411\u6027\u7684\u529b \/ \u52a0\u901f\u5ea6.<\/div>\n<div>\u9054\u5230\u9019\u6b65, rigidybody.addForce \u7684\u56db\u500b\u6a21\u5f0f\u662f\u5fc5\u9700\u7cbe\u7814\u7684.<\/div>\n<div>\u7136\u5f8c\u5c31\u662f\u600e\u6a23\u9069\u6642\u5207\u63db\u5236\u505a \u771f\/\u5047\u7269\u7406.<\/div>\n<div><\/div>\n<div>\u70ba\u4e86\u66f4\u983b\u7e41\u5730\u8986\u5beb Rigidbody \u7684\u7269\u7406, \u628a\u5148\u524d\u7684 Configurable Joint \u91cd\u65b0\u7814\u7a76\u4e86\u4e00\u7bc7.<\/div>\n<div>\u5728 2017 \u65b0\u52a0\u5165\u7684 massScale \u771f\u662f\u975e\u5e38\u597d\u7528\u7684\u6771\u897f, \u61c9\u8a72\u9084\u6709\u66f4\u591a\u7684\u6771\u897f\u5728\u88e1\u9762\u4e0d\u904e\u73fe\u968e\u6bb5.<\/div>\n<div><\/div>\n<div>\u5169\u500b Rigidbody \u7528 Joint \u9023\u7e6b\u8d77\u4f86\u5f8c, massScale &amp; connectedMassScale \u4e4b\u9593\u7684\u6bd4\u4f8b\u6703\u4ee4\u5230\u5f15\u64ce (\u5ffd\u7565?) \u5b83\u5011\u4e4b\u9593\u7684 mass \u5f71\u97ff..<\/div>\n<div>\u4f8b\u5982\u4e00\u500b mass = 1 + massScale = 100 \u7684 Rigidbody A, \u8ddf mass = 100 + massScale = 1 \u7684 Rigidbody B<\/div>\n<div>\u53ef\u4ee5\u6709\u63a5\u8fd1\u76f8\u540c\u7684\u62c9\u626f\u529b\u91cf (\u8b0e?!)<\/div>\n<div>ref :\u00a0<a href=\"https:\/\/docs.unity3d.com\/ScriptReference\/Joint-massScale.html\">https:\/\/docs.unity3d.com\/ScriptReference\/Joint-massScale.html<\/a><\/div>\n<div>\u9019\u500b\u529f\u80fd\u4ee4\u9019\u7528 joint \u4f86\u4fe2\u6539\u7269\u7406\u7684\u5de5\u4f5c\u8b8a\u5f97\u975e\u5e38\u7c21\u55ae.<\/div>\n<div><\/div>\n<div>\n<p><iframe loading=\"lazy\" title=\"Character Controller log #9 wall run 2.0\" width=\"1260\" height=\"945\" src=\"https:\/\/www.youtube.com\/embed\/LDCvUfVJDRA?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe><\/p>\n<\/div>\n<div><\/div>\n<div>implement features:<\/div>\n<div>&#8211; release direction control during wall run.<\/div>\n<div>&#8211; walk path based on giving animation curve.<\/div>\n<div>&#8211; special handling the corner turning.<\/div>\n<div>&#8211; local angle bias when user didn&#8217;t change the input direction.<\/div>\n<div>&#8211; adjust distance based on terrain.<\/div>\n<div>&#8211; allow to across multiple surface during wall run.<\/div>\n<div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u7e7c\u4e0a\u7bc7 :\u00a0http:\/\/www.clonefactor.com\/wordpress\/public\/ &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[43],"class_list":["post-1933","post","type-post","status-publish","format-standard","hentry","category-unity3d","tag-unity3d-2"],"_links":{"self":[{"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/posts\/1933","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/comments?post=1933"}],"version-history":[{"count":0,"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/posts\/1933\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1933"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1933"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}