{"id":261,"date":"2009-07-12T23:25:05","date_gmt":"2009-07-12T17:55:05","guid":{"rendered":"http:\/\/techtwaddle.net\/?p=261"},"modified":"2026-11-20T09:13:49","modified_gmt":"2026-11-20T03:43:49","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<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=\"https:\/\/techtwaddle.co.in\/blog\/2009\/07\/12\/lets-make-the-spaceship-move-directdraw-part-6\/\">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<div><\/div>\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<div class=\"jetpack-video-wrapper\"><span class=\"embed-youtube\" style=\"text-align:center; display: block;\"><iframe class='youtube-player' width='660' height='372' src='https:\/\/www.youtube.com\/embed\/Vkp6yKXv0lY?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en-US&#038;autohide=2&#038;wmode=transparent' allowfullscreen='true' style='border:0;' sandbox='allow-scripts allow-same-origin allow-popups allow-presentation'><\/iframe><\/span><\/div>\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","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. The calculations for a collision is a mathematically involved affair, &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":3,"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/posts\/261\/revisions"}],"predecessor-version":[{"id":782,"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/posts\/261\/revisions\/782"}],"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}]}}