{"id":1912,"date":"2018-01-05T00:49:23","date_gmt":"2018-01-04T16:49:23","guid":{"rendered":"http:\/\/www.clonefactor.com\/wordpress\/?p=1912"},"modified":"2018-01-05T03:47:56","modified_gmt":"2018-01-04T19:47:56","slug":"better-jump-learning-notes","status":"publish","type":"post","link":"https:\/\/www.clonefactor.com\/wordpress\/program\/c\/1912\/","title":{"rendered":"Better Jump, learning notes"},"content":{"rendered":"<p>\u8a18\u9304\u5b78\u7fd2 Titanfall \u7684\u8df3\u8e8d\u53ca\u95b1\u8b80\u904e\u7684\u6587\u7ae0<\/p>\n<p><iframe loading=\"lazy\" title=\"Math for Game Programmers: Building a Better Jump\" width=\"1260\" height=\"709\" src=\"https:\/\/www.youtube.com\/embed\/hG9SzQxaCm8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe><\/p>\n<p><iframe loading=\"lazy\" title=\"[Unity] Creating a 2D Platformer (E03. jump physics)\" width=\"1260\" height=\"709\" src=\"https:\/\/www.youtube.com\/embed\/PlT44xr0iW0?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe><\/p>\n<p>the code from video convert into C#<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">float gravity = (-2f * m_MaxHeight) \/ Mathf.Pow(m_TimeToJumpApex, 2);\r\nfloat v0 = Mathf.Abs(gravity * m_TimeToJumpApex);<\/pre>\n<p>for not using physics (with sample code)<\/p>\n<p><a href=\"https:\/\/halfcodehalfdesign.wordpress.com\/2015\/02\/21\/realistic-jumping-in-game\/\">How to jump a game character realistically without using physics engine in corona&nbsp;sdk<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Runge Kutta 4<\/p>\n<p>Overkill Version.<\/p>\n<p><iframe loading=\"lazy\" title=\"Chapter 08.04: Lesson: Runge Kutta 4th Order Method: Formulas\" width=\"1260\" height=\"945\" src=\"https:\/\/www.youtube.com\/embed\/hGN54bkE8Ac?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe><\/p>\n<p>C# example Kutta solver (later study)<\/p>\n<p><a href=\"https:\/\/www.centerspace.net\/examples\/nmath\/csharp\/analysis\/runge-kutta-solver-example.php\">https:\/\/www.centerspace.net\/examples\/nmath\/csharp\/analysis\/runge-kutta-solver-example.php<\/a><\/p>\n<p><a href=\"https:\/\/www.physicsforums.com\/threads\/fourth-order-rungekutta-in-c-two-differential-equations.515691\/\">https:\/\/www.physicsforums.com\/threads\/fourth-order-rungekutta-in-c-two-differential-equations.515691\/<\/a><\/p>\n<p><a href=\"http:\/\/www.extremeoptimization.com\/QuickStart\/CSharp\/DifferentialEquations.aspx\">http:\/\/www.extremeoptimization.com\/QuickStart\/CSharp\/DifferentialEquations.aspx<\/a><\/p>\n<p>to be continue.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8a18\u9304\u5b78\u7fd2 Titanfall \u7684\u8df3\u8e8d\u53ca\u95b1\u8b80\u904e\u7684\u6587\u7ae0 the code from video conv &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,78,11],"tags":[43],"class_list":["post-1912","post","type-post","status-publish","format-standard","hentry","category-c","category-math","category-unity3d","tag-unity3d-2"],"_links":{"self":[{"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/posts\/1912","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=1912"}],"version-history":[{"count":0,"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/posts\/1912\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1912"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1912"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}