{"id":261,"date":"2009-07-12T23:25:05","date_gmt":"2009-07-12T17:55:05","guid":{"rendered":"http:\/\/techtwaddle.net\/?p=261"},"modified":"2011-04-12T23:25:22","modified_gmt":"2011-04-12T17:55:22","slug":"bouncingcolliding-marbles-directdraw-part-7","status":"publish","type":"post","link":"https:\/\/techtwaddle.co.in\/blog\/2009\/07\/12\/bouncingcolliding-marbles-directdraw-part-7\/","title":{"rendered":"Bouncing\/Colliding marbles, DirectDraw, Part 7"},"content":{"rendered":"<div style=\"text-align: justify;\"><span style=\"font-family: Comic Sans MS;\">Hi there! The marbles finally collide and collide they do! (: I came across <a href=\"http:\/\/www.phy.ntnu.edu.tw\/ntnujava\/index.php?topic=4\">this thread<\/a>, where Professor Fu-Kwun Hwang has a nice applet on collisions. If you go through the entire thread, professor Hwang explains the equations and mathematics related to elastic two-dimensional collisions.<\/span><\/div>\n<p>&nbsp;<\/p>\n<div style=\"text-align: justify;\"><span style=\"font-family: Comic Sans MS;\">The calculations for a collision is a mathematically involved affair, as I had mentioned in my <a href=\"http:\/\/geekswithblogs.net\/TechTwaddle\/archive\/2009\/07\/13\/lets-make-the-spaceship-move-directdraw-part-6.aspx\">previous post<\/a>. I can&#8217;t say I fully understand the computations yet, maybe I will look into the details later (: Anyways, the marbles collide and deflect off each other pretty nicely.<\/span><\/div>\n<p>&nbsp;<\/p>\n<div style=\"text-align: justify;\"><span style=\"font-family: Comic Sans MS;\">I&#8217;ll let the video do the talking:<\/span><\/div>\n<p>&nbsp;<\/p>\n<p><object width=\"425\" height=\"344\"><param value=\"http:\/\/www.youtube.com\/v\/Vkp6yKXv0lY&amp;hl=en&amp;fs=1&amp;\" name=\"movie\" \/><param value=\"true\" name=\"allowFullScreen\" \/><param value=\"always\" name=\"allowscriptaccess\" \/><\/object><\/p>\n<p>\n<\/p>\n<div style=\"text-align: justify;\"><span style=\"font-family: Comic Sans MS;\">I will explain the code in my next post, gotta get up early tomorrow (: Goodnight!<\/span><\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi there! The marbles finally collide and collide they do! (: I came across this thread, where Professor Fu-Kwun Hwang has a nice applet on collisions. If you go through the entire thread, professor Hwang explains the equations and mathematics related to elastic two-dimensional collisions. &nbsp; The calculations for a collision is a mathematically involved &hellip; <a href=\"https:\/\/techtwaddle.co.in\/blog\/2009\/07\/12\/bouncingcolliding-marbles-directdraw-part-7\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Bouncing\/Colliding marbles, DirectDraw, Part 7<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[1],"tags":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1ktFF-4d","_links":{"self":[{"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/posts\/261"}],"collection":[{"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/comments?post=261"}],"version-history":[{"count":1,"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/posts\/261\/revisions"}],"predecessor-version":[{"id":262,"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/posts\/261\/revisions\/262"}],"wp:attachment":[{"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/media?parent=261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/categories?post=261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/tags?post=261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}