{"id":5468,"date":"2015-10-14T00:34:39","date_gmt":"2015-10-14T07:34:39","guid":{"rendered":"https:\/\/www.tynker.com\/blog\/?p=5468"},"modified":"2023-10-27T03:55:43","modified_gmt":"2023-10-27T10:55:43","slug":"tynker-physics-part-2","status":"publish","type":"post","link":"https:\/\/www.tynker.com\/blog\/tynker-physics-part-2\/","title":{"rendered":"Using Physics with Tynker: Part 2"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a0305c29626a\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #206be5;color:#206be5\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #206be5;color:#206be5\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a0305c29626a\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.tynker.com\/blog\/tynker-physics-part-2\/#Using_Physics_with_Tynker_Part_2\" >Using Physics with Tynker: Part 2<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.tynker.com\/blog\/tynker-physics-part-2\/#Heres_How_It_Works\" >Here&#8217;s How It Works:<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.tynker.com\/blog\/tynker-physics-part-2\/#Start_Physics\" >Start Physics<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.tynker.com\/blog\/tynker-physics-part-2\/#Set_Up_Gravity\" >Set Up Gravity<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.tynker.com\/blog\/tynker-physics-part-2\/#Make_Some_Objects_Movable\" >Make Some Objects Movable<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.tynker.com\/blog\/tynker-physics-part-2\/#Make_Some_Objects_Immune_to_Physics\" >Make Some Objects Immune to Physics<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.tynker.com\/blog\/tynker-physics-part-2\/#Launch_the_Bird\" >Launch the Bird<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Using_Physics_with_Tynker_Part_2\"><\/span>Using Physics with Tynker: Part 2<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Tynker&#8217;s Physics Engine allows kids to\u00a0easily make all\u00a0kinds of fun games, including this Angry Birds\u2122-inspired game!<\/p>\n\n<!-- iframe plugin v.6.0 wordpress.org\/plugins\/iframe\/ -->\n<iframe loading=\"lazy\" frameborder=\"0\" scrolling=\"no\" src=\"\/ide\/embedded?p=561d3139af923167728b465b&#038;controls=yes&#038;autostart=no\" width=\"100%\" height=\"500\" class=\"iframe-class\"><\/iframe>\n\n<p>Hold down your mouse to charge the cannon. When you let go,\u00a0the bird will fly across the screen.\u00a0The monster has three lives, so you have to hit him three times to defeat him.<\/p>\n<p>Tynker&#8217;s Physics Engine is a super easy-to-use physics simulator. Kids create objects, set some basic physics properties like gravity, friction, and bounciness, and watch as the objects they&#8217;ve created move and interact based on their physics settings.<\/p>\n<p>Using Tynker\u2019s Physics Engine, kids can make their own versions of this fun game. It\u2019s actually pretty easy!\u00a0We\u2019ve made a do-it-yourself project with detailed step-by-step instructions so kids can make this game. It uses our new DIY format with blocks that you can drag directly from the instructions, which makes coding much easier.<\/p>\n<p style=\"text-align: center;\"><a class=\"sf-button large accent standard \" href=\"https:\/\/www.tynker.com\/ide\/?p=561571e7af923163468b456c\" target=\"_blank\"><span class=\"text\">Make Your Own Physics Cannon Game<\/span><\/a>\n<h2 style=\"text-align: left;\"><span class=\"ez-toc-section\" id=\"Heres_How_It_Works\"><\/span>Here&#8217;s How It Works:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3 style=\"text-align: left;\"><span class=\"ez-toc-section\" id=\"Start_Physics\"><\/span>Start Physics<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-5493 alignnone\" src=\"https:\/\/images.tynker.com\/blog\/wp-content\/uploads\/start-physics.png\" alt=\"start physics\" width=\"94\" height=\"34\" \/><\/p>\n<p>At the beginning of every Tynker program that uses physics, students use this block to initiate the physics simulation.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Set_Up_Gravity\"><\/span>Set Up Gravity<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><b><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-5494 alignnone\" src=\"https:\/\/images.tynker.com\/blog\/wp-content\/uploads\/set-gravity-to.png\" alt=\"set gravity to\" width=\"179\" height=\"34\" srcset=\"https:\/\/images.tynker.com\/blog\/wp-content\/uploads\/set-gravity-to.png 179w, https:\/\/images.tynker.com\/blog\/wp-content\/uploads\/set-gravity-to-150x28.png 150w\" sizes=\"auto, (max-width: 179px) 100vw, 179px\" \/><\/b><\/p>\n<p>When the bird is launched, it will be affected by gravity pulling it downwards. The first number in this block sets the horizontal\u00a0gravity and the second number sets the vertical gravity.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Make_Some_Objects_Movable\"><\/span>Make Some Objects Movable<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h3><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-5495 alignnone\" src=\"https:\/\/images.tynker.com\/blog\/wp-content\/uploads\/set-static.png\" alt=\"set static\" width=\"199\" height=\"34\" srcset=\"https:\/\/images.tynker.com\/blog\/wp-content\/uploads\/set-static.png 199w, https:\/\/images.tynker.com\/blog\/wp-content\/uploads\/set-static-150x26.png 150w\" sizes=\"auto, (max-width: 199px) 100vw, 199px\" \/><\/h3>\n<p>Kids have to figure out which objects they want to be movable, and which ones they want to be static. For an Angry Birds program, the charge bar and cannon should be static, while\u00a0the monster and bird should be non-static.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Make_Some_Objects_Immune_to_Physics\"><\/span>Make Some Objects Immune to Physics<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h3><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-5496 alignnone\" src=\"https:\/\/images.tynker.com\/blog\/wp-content\/uploads\/set-active.png\" alt=\"set active\" width=\"202\" height=\"34\" srcset=\"https:\/\/images.tynker.com\/blog\/wp-content\/uploads\/set-active.png 202w, https:\/\/images.tynker.com\/blog\/wp-content\/uploads\/set-active-150x25.png 150w\" sizes=\"auto, (max-width: 202px) 100vw, 202px\" \/><\/h3>\n<p>If physics is on, all objects will be affected by gravity. But the charge bar and the cannon need to stay where they are, so they should be inactive.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Launch_the_Bird\"><\/span>Launch the Bird<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-5497 alignnone\" src=\"https:\/\/images.tynker.com\/blog\/wp-content\/uploads\/set-linear-velocity-to.png\" alt=\"set linear velocity to\" width=\"168\" height=\"34\" srcset=\"https:\/\/images.tynker.com\/blog\/wp-content\/uploads\/set-linear-velocity-to.png 168w, https:\/\/images.tynker.com\/blog\/wp-content\/uploads\/set-linear-velocity-to-150x30.png 150w\" sizes=\"auto, (max-width: 168px) 100vw, 168px\" \/><\/p>\n<p>When the player has charged the cannon, this block launches the bird out of the cannon. But kids can also experiment with other ways to launch the bird, like applying an impulse to the bird. Just as with all programming, there&#8217;s no one right way to solve a problem!<\/p>\n<p>If your kids enjoy this DIY, check out our <a href=\"https:\/\/www.tynker.com\/parents\/\">home courses<\/a>. In Cannon Crasher, Gravity Sling, and Ninja Runner, kids make games like this and hundreds more.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using Physics with Tynker: Part 2 Tynker&#8217;s Physics Engine allows kids to\u00a0easily make all\u00a0kinds of fun games, including this Angry Birds\u2122-inspired game! Hold down your mouse to charge the cannon. When you let go,\u00a0the bird will fly across the screen.\u00a0The monster has three lives, so you have to hit him three times to defeat him. Tynker&#8217;s Physics Engine is a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":5512,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[443],"class_list":["post-5468","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming-projects-for-kids","tag-tips"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Using Physics with Tynker: Part 2 - Tynker Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.tynker.com\/blog\/tynker-physics-part-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using Physics with Tynker: Part 2 - Tynker Blog\" \/>\n<meta property=\"og:description\" content=\"Using Physics with Tynker: Part 2 Tynker&#8217;s Physics Engine allows kids to\u00a0easily make all\u00a0kinds of fun games, including this Angry Birds\u2122-inspired game! Hold down your mouse to charge the cannon. When you let go,\u00a0the bird will fly across the screen.\u00a0The monster has three lives, so you have to hit him three times to defeat him. Tynker&#8217;s Physics Engine is a [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.tynker.com\/blog\/tynker-physics-part-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Tynker Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Gotynker\/\" \/>\n<meta property=\"article:published_time\" content=\"2015-10-14T07:34:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-27T10:55:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/images.tynker.com\/blog\/wp-content\/uploads\/P1430055.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"3264\" \/>\n\t<meta property=\"og:image:height\" content=\"2448\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Tynker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@gotynker\" \/>\n<meta name=\"twitter:site\" content=\"@gotynker\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tynker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using Physics with Tynker: Part 2 - Tynker Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.tynker.com\/blog\/tynker-physics-part-2\/","og_locale":"en_US","og_type":"article","og_title":"Using Physics with Tynker: Part 2 - Tynker Blog","og_description":"Using Physics with Tynker: Part 2 Tynker&#8217;s Physics Engine allows kids to\u00a0easily make all\u00a0kinds of fun games, including this Angry Birds\u2122-inspired game! Hold down your mouse to charge the cannon. When you let go,\u00a0the bird will fly across the screen.\u00a0The monster has three lives, so you have to hit him three times to defeat him. Tynker&#8217;s Physics Engine is a [&hellip;]","og_url":"https:\/\/www.tynker.com\/blog\/tynker-physics-part-2\/","og_site_name":"Tynker Blog","article_publisher":"https:\/\/www.facebook.com\/Gotynker\/","article_published_time":"2015-10-14T07:34:39+00:00","article_modified_time":"2023-10-27T10:55:43+00:00","og_image":[{"width":3264,"height":2448,"url":"https:\/\/images.tynker.com\/blog\/wp-content\/uploads\/P1430055.jpg","type":"image\/jpeg"}],"author":"Tynker","twitter_card":"summary_large_image","twitter_creator":"@gotynker","twitter_site":"@gotynker","twitter_misc":{"Written by":"Tynker","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tynker.com\/blog\/tynker-physics-part-2\/#article","isPartOf":{"@id":"https:\/\/www.tynker.com\/blog\/tynker-physics-part-2\/"},"author":{"name":"Tynker","@id":"https:\/\/www.tynker.com\/blog\/#\/schema\/person\/b63acd9ceebe78ea474bfcfbfdac7d57"},"headline":"Using Physics with Tynker: Part 2","datePublished":"2015-10-14T07:34:39+00:00","dateModified":"2023-10-27T10:55:43+00:00","mainEntityOfPage":{"@id":"https:\/\/www.tynker.com\/blog\/tynker-physics-part-2\/"},"wordCount":433,"publisher":{"@id":"https:\/\/www.tynker.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.tynker.com\/blog\/tynker-physics-part-2\/#primaryimage"},"thumbnailUrl":"https:\/\/images.tynker.com\/blog\/wp-content\/uploads\/P1430055.jpg","keywords":["Tynker Tips"],"articleSection":["Seasonal Coding Projects"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.tynker.com\/blog\/tynker-physics-part-2\/","url":"https:\/\/www.tynker.com\/blog\/tynker-physics-part-2\/","name":"Using Physics with Tynker: Part 2 - Tynker Blog","isPartOf":{"@id":"https:\/\/www.tynker.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.tynker.com\/blog\/tynker-physics-part-2\/#primaryimage"},"image":{"@id":"https:\/\/www.tynker.com\/blog\/tynker-physics-part-2\/#primaryimage"},"thumbnailUrl":"https:\/\/images.tynker.com\/blog\/wp-content\/uploads\/P1430055.jpg","datePublished":"2015-10-14T07:34:39+00:00","dateModified":"2023-10-27T10:55:43+00:00","breadcrumb":{"@id":"https:\/\/www.tynker.com\/blog\/tynker-physics-part-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.tynker.com\/blog\/tynker-physics-part-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.tynker.com\/blog\/tynker-physics-part-2\/#primaryimage","url":"https:\/\/images.tynker.com\/blog\/wp-content\/uploads\/P1430055.jpg","contentUrl":"https:\/\/images.tynker.com\/blog\/wp-content\/uploads\/P1430055.jpg","width":3264,"height":2448,"caption":"Boys Coding with Tynker on iPad"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tynker.com\/blog\/tynker-physics-part-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Coding for Kids","item":"https:\/\/www.tynker.com\/"},{"@type":"ListItem","position":2,"name":"Blog","item":"https:\/\/www.tynker.com\/blog\/"},{"@type":"ListItem","position":3,"name":"Using Physics with Tynker: Part 2"}]},{"@type":"WebSite","@id":"https:\/\/www.tynker.com\/blog\/#website","url":"https:\/\/www.tynker.com\/blog\/","name":"Tynker Blog","description":"Tynker makes it fun and easy to learn computer programming. Get started today with Tynker&#039;s easy-to-learn, visual programming courses designed for young learners in grades K-12.","publisher":{"@id":"https:\/\/www.tynker.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.tynker.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.tynker.com\/blog\/#organization","name":"Tynker - Coding for Kids","url":"https:\/\/www.tynker.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.tynker.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/images.tynker.com\/blog\/wp-content\/uploads\/20220713063303\/appicon-120.png","contentUrl":"https:\/\/images.tynker.com\/blog\/wp-content\/uploads\/20220713063303\/appicon-120.png","width":120,"height":120,"caption":"Tynker - Coding for Kids"},"image":{"@id":"https:\/\/www.tynker.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Gotynker\/","https:\/\/x.com\/gotynker","https:\/\/www.instagram.com\/tynkercoding\/","https:\/\/www.pinterest.com\/gotynker\/","https:\/\/www.linkedin.com\/company\/tynker"]},{"@type":"Person","@id":"https:\/\/www.tynker.com\/blog\/#\/schema\/person\/b63acd9ceebe78ea474bfcfbfdac7d57","name":"Tynker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.tynker.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e763a250a1fd5790919d1e588e78461c1f50971644d40baac7f6176d0a4ea007?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e763a250a1fd5790919d1e588e78461c1f50971644d40baac7f6176d0a4ea007?s=96&d=mm&r=g","caption":"Tynker"},"description":"Tynker enables children to learn computer programming in a fun and imaginative way. More than 60 million kids worldwide have started learning to code using Tynker.","url":"https:\/\/www.tynker.com\/blog\/author\/tynker\/"}]}},"_links":{"self":[{"href":"https:\/\/www.tynker.com\/blog\/wp-json\/wp\/v2\/posts\/5468","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tynker.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tynker.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tynker.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tynker.com\/blog\/wp-json\/wp\/v2\/comments?post=5468"}],"version-history":[{"count":43,"href":"https:\/\/www.tynker.com\/blog\/wp-json\/wp\/v2\/posts\/5468\/revisions"}],"predecessor-version":[{"id":36817,"href":"https:\/\/www.tynker.com\/blog\/wp-json\/wp\/v2\/posts\/5468\/revisions\/36817"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tynker.com\/blog\/wp-json\/wp\/v2\/media\/5512"}],"wp:attachment":[{"href":"https:\/\/www.tynker.com\/blog\/wp-json\/wp\/v2\/media?parent=5468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tynker.com\/blog\/wp-json\/wp\/v2\/categories?post=5468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tynker.com\/blog\/wp-json\/wp\/v2\/tags?post=5468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}