Uploaded November 2024 | Updated November 2026, 1 hour ago
LET'S CONNECT
β¨ Sign up for my newsletter at pattvira.com
β¨ Instagram: instagram.com/pattvira
β¨ Twitter: twitter.com/pattvira
--
π¨ In the diagram, I switched the labeling locations for x and y (for both x1/y1 and x2/y2), but the trigonometric equations are correct!
Links:
π p5.js editor: editor.p5js.org
π Double Pendulum Code: editor.p5js.org/pattvira/sketches/vHZ9pCIqZ
π Introduction to Creative Coding Playlist: youtube.com/playlist?list=PL0beHPVMklwgMz4Z-mNp4_udo9mjBk7pn&si=XhvQaojd6cIrxvdn
References:
π Pendulum Waves: youtu.be/GqVyz-8AGcA
π Lagrangian Mechanics: myphysicslab.com/pendulum/double-pendulum-en.html
Timestamps:
0:00 Intro
1:06 Walk through double pendulum diagram
2:44 Create one double pendulum
7:42 Use Lagrangian mechanics to calculate angular acceleration
11:20 Create a Pendulum class
15:29 Create multiple pendulum objects with different initial conditions
19:29 Experiment!
LET'S CONNECT
β¨ Sign up for my newsletter at pattvira.com
β¨ Instagram: instagram.com/pattvira
β¨ Twitter: twitter.com/pattvira
--
π¨ In the diagram, I switched the labeling locations for x and y (for both x1/y1 and x2/y2), but the trigonometric equations are correct!
Links:
π p5.js editor: editor.p5js.org
π Double Pendulum Code: editor.p5js.org/pattvira/sketches/vHZ9pCIqZ
π Introduction to Creative Coding Playlist: youtube.com/playlist?list=PL0beHPVMklwgMz4Z-mNp4_udo9mjBk7pn&si=XhvQaojd6cIrxvdn
References:
π Pendulum Waves: youtu.be/GqVyz-8AGcA
π Lagrangian Mechanics: myphysicslab.com/pendulum/double-pendulum-en.html
Timestamps:
0:00 Intro
1:06 Walk through double pendulum diagram
2:44 Create one double pendulum
7:42 Use Lagrangian mechanics to calculate angular acceleration
11:20 Create a Pendulum class
15:29 Create multiple pendulum objects with different initial conditions
19:29 Experiment!
![βοΈ Code With Me | cute cozy lofi beats
Another code with me video! For a full tutorial, check it out here:
π Collisions without a Physics Library tutorial: https://youtu.be/EFDesKpLCG0?si=GvFj7oLF9-8jo8CF
LETS CONNECT
β¨ Sign up for my newsletter at https://www.pattvira.com
β¨ Instagram: https://www.instagram.com/pattvira
β¨ Twitter: https://twitter.com/pattvira
πΆ Music by:
Oneul - Cozy Night: https://www.youtube.com/watch?v=mWTZu5yuCi0
Oneul - Starlight ice cream: https://www.youtube.com/watch?v=vLgf6prOGjA
shushubobo - oh my cat
[no copyright music] Β Β https://www.youtube.com/watch?v=UHwEZPDXR2Y
shushubobo - λμ무λ°νκΉ
[no copyright music] https://www.youtube.com/watch?v=RuAVyZwZdoU
shushubobo - favorite things
[no copyright music] https://www.youtube.com/watch?v=8EdHQKn7HM4
Chillpeach - Gameplay : https://www.youtube.com/watch?v=w4oLP7fa9Vk βοΈ Code With Me | cute cozy lofi beats](https://i.ytimg.com/vi/OQpsy2IjQnI/mqdefault.jpg)









