Pymunk Basics: Double Pendulum with Joints

Опубликовано: 15 Август 2026
на канале: Ear Of Corn Programming
6,370
121

In this series, I will review the basic concepts of pymunk through its integration with pygame. Familiarity with pygame or watching my pygame basics videos is recommended prior to this series.

In this video, we utilize the previously presented OOP approach to integrating pymunk and pygame to "abstract-out" the concept of joints as simply objects. Instead of creating body and shape attributes in the object's _init_ method as we have done before, we save the two attached bodies as attributes and add the joint to the space.

Feel free to ask questions in the comments.

Documentation for Pygame
https://www.pygame.org/docs/

Documentation for Pymunk
http://www.pymunk.org/en/latest/pymun...

Visual Demonstration of Pymunk Joints
   • Chipmunk Joints and Constraints  

Double Pendulum Simulator
https://www.myphysicslab.com/pendulum...