<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Joseph Sen</title>
    <description>The latest articles on DEV Community by Joseph Sen (@joseph_sen_794cde6a4dbccf).</description>
    <link>https://dev.to/joseph_sen_794cde6a4dbccf</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3391940%2F99ea4447-6431-437e-8055-8e2921ce4fb1.png</url>
      <title>DEV Community: Joseph Sen</title>
      <link>https://dev.to/joseph_sen_794cde6a4dbccf</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/joseph_sen_794cde6a4dbccf"/>
    <language>en</language>
    <item>
      <title>🎯 Pygame + Pymunk Collision Lab — tweak mass &amp; speed, watch the physics happen</title>
      <dc:creator>Joseph Sen</dc:creator>
      <pubDate>Sun, 27 Jul 2025 15:12:02 +0000</pubDate>
      <link>https://dev.to/joseph_sen_794cde6a4dbccf/pygame-pymunk-collision-lab-tweak-mass-speed-watch-the-physics-happen-1fff</link>
      <guid>https://dev.to/joseph_sen_794cde6a4dbccf/pygame-pymunk-collision-lab-tweak-mass-speed-watch-the-physics-happen-1fff</guid>
      <description>&lt;p&gt;I built a small 2D collision sandbox to visualize elastic collisions using Pygame for rendering and Pymunk (Chipmunk2D) for physics. A tiny Tkinter launcher lets you set the initial speeds and masses of two balls. The app then displays each ball’s live speed and the post‑collision speeds captured via a Pymunk post_solve callback.&lt;/p&gt;

&lt;p&gt;Demo highlights&lt;/p&gt;

&lt;p&gt;🧪 Set speed &amp;amp; mass for both balls before the sim starts (Tkinter dialog).&lt;/p&gt;

&lt;p&gt;⚙️ Real‑time physics with elasticity and friction; damping for subtle energy loss.&lt;/p&gt;

&lt;p&gt;📊 On‑screen HUD: current speed (px/s) for each ball + speeds right after impact.&lt;/p&gt;

&lt;p&gt;🧱 Static wall segments on both sides to keep objects in view.&lt;/p&gt;

&lt;p&gt;🟢🟥 Color‑coded bodies: Green vs. Red.&lt;/p&gt;

</description>
      <category>python</category>
      <category>gamedev</category>
      <category>simulationgames</category>
    </item>
  </channel>
</rss>
