Рет қаралды 95,552
Choo choo! In this challenge, I build on chapter 3 (Oscillating Motion) of the Nature of Code series and simulate a simple pendulum in p5.js via angular acceleration. thecodingtrain.com/challenges...
🕹️ p5.js Simple Pendulum editor.p5js.org/codingtrain/s...
🕹️ p5.js OOP Pendulum: editor.p5js.org/codingtrain/s...
🕹️ p5.js Pendulum Array: editor.p5js.org/codingtrain/s...
🎥 Pendulum Array Exploration: • Coding Train Live!
🎥 Previous Coding Challenge: • Coding Challenge #158:...
🎥 Next Coding Challenge: • Coding Challenge #160:...
🎥 All Coding Challenges: • Coding Challenges
🎥 Previous Nature of Code Video: • 3.7: Additive Waves - ...
🎥 Next Nature of Code Video: • Coding Challenge #160:...
🎥 All Nature of Code Videos: • The Nature of Code 2
Links discussed in this video:
🔗 Nature of Code Playlist: thecodingtrain.com/learning/n...
🔗 Applications of Differential Equations - The Simple Pendulum: calculuslab.deltacollege.edu/O...
🔗 Simple Pendulum (myPhysicsLab.com): www.myphysicslab.com/pendulum...
🔗 Object Oriented Simple Pendulum (Nature of Code Book): github.com/nature-of-code/noc...
Other videos mentioned in this video:
🎥 Polar Coordinates - Nature of Code: • 3.4 Polar Coordinates ...
🎥 3.2 Angular Motion - Nature of Code: • 3.2 Angular Motion - N...
🎥 Double Pendulum - Coding Challenge #93: • Coding Challenge 93: D...
🎥 Coding Train Live! (February 6th 2021): • Coding Train Live!
Timestamps:
0:00 Choo choo!! 2021 Coding Challenge!
0:43 Code! Drawing a bob and an arm.
1:08 Explain! How are we going to think about this?
2:55 Code! Add our main variables.
3:20 Explain! How do we figure out where the bob is? Trigonometry is the answer!
4:39 Code! Use the polar coordinates formulas we just worked out.
6:30 Code! Let's use angular motion!
7:55 Explain! What is the force of the pendulum? Trigonometry is the answer!
10:46 Code! Add the pendulum force.
12:04 Whoops! Correction on why we multiply by -1.
13:34 Code! Add -1 to the formula.
13:57 Whoops! I figured out some things that I never really understood.
14:24 Code! Correct the 3 step process.
15:32 Something doesn't feel quite right.
16:59 Explain! Angular acceleration relates to the arm length!
18:58 Code! Let's divide by length.
19:54 Code! You could add some damping.
20:21 Ideas! What could you do next?
🚂 Website: thecodingtrain.com/
👾 Share Your Creation! thecodingtrain.com/Guides/com...
🚩 Suggest Topics: github.com/CodingTrain/Rainbo...
💡 GitHub: github.com/CodingTrain
💬 Discord: / discord
💖 Membership: kzbin.infojoin
🛒 Store: standard.tv/codingtrain
📚 Books: www.amazon.com/shop/thecoding...
🖋️ Twitter: / thecodingtrain
📸 Instagram: / the.coding.train
🎥 Coding Challenges: • Coding Challenges
🎥 Intro to Programming: • Start learning here!
🔗 p5.js: p5js.org
🔗 p5.js Web Editor: editor.p5js.org/
🔗 Processing: processing.org
📄 Code of Conduct: github.com/CodingTrain/Code-o...