2.4 Drag Force - The Nature of Code
In this video I implement the formula for a “drag” force with p5.js (also known as air resistance or fluid resistance) and similar objects falling into a liquid. Code: https://thecodingtrain.com/tracks/the-nature-of-code-2/noc/2-forces/4-drag-force
🚀 Watch this video ad-free on Nebula https://nebula.tv/videos/the-coding-train-yt-24-drag-force-the-nature-of-code
p5.js Web Editor Sketches:
🕹️ Drag Force: https://editor.p5js.org/codingtrain/sketches/5V8nSBOS
🕹️ Goose and the Jello Cubes of Varying Densities: https://editor.p5js.org/codingtrain/sketches/O36gAqVqt
🕹️ Surface Area Exercise: https://editor.p5js.org/codingtrain/sketches/hHDqBfOCt
🎥 Previous video: https://youtu.be/WBdhAuWS6X8?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
🎥 Next video: https://youtu.be/EpgB3cNhKPM?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
🎥 All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
References:
🔗 Drag: https://en.wikipedia.org/wiki/Drag_%28physics%29
🔗 Nature of Code Chapter 2: https://natureofcode.com/book/chapter-2-forces/
Timestamps:
0:00 Introduction
1:06 Formula for drag
1:37 Direction of drag
2:15 Density
2:52 Surface area
3:45 Coefficient of drag
4:09 Simplified drag force
4:39 Drag force is proportional to speed
7:45 Add a rectangle with a different drag force
9:29 Possible exercises
10:28 See you in the next video!
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
🚂 Website: http://thecodingtrain.com/
👾 Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide
🚩 Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
💡 GitHub: https://github.com/CodingTrain
💬 Discord: https://thecodingtrain.com/discord
✪ Nebula: https://go.nebula.tv/codingtrain
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
🖋️ Twitter: https://twitter.com/thecodingtrain
📸 Instagram: https://www.instagram.com/the.coding.train/
🎥 Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
🎥 Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
🔗 p5.js: https://p5js.org
🔗 p5.js Web Editor: https://editor.p5js.org/
🔗 Processing: https://processing.org
📄 Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct
This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new
#forbeginners #javascript #p5js