2.1 Simulating Forces: Gravity and Wind - The Nature of Code

Subscribers:
1,740,000
Published on ● Video Link: https://www.youtube.com/watch?v=Uibl0UE4VH8



Duration: 24:12
91,920 views
2,438


In this video I introduce Newton's Laws of Motion, and apply the concept of a "force" to a p5.js sketch with a mover object and two forces: gravity and wind. Code: https://thecodingtrain.com/tracks/the-nature-of-code-2/noc/2-forces/1-gravity-and-wind

πŸš€ Watch this video ad-free on Nebula https://nebula.tv/videos/the-coding-train-yt-2-1-simulating-forces-gravity-and-wind-the-nature-of-code

πŸ•ΉοΈ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/kYWcOmch

πŸŽ₯ Previous video: https://youtu.be/T84AWnntxZA?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
πŸŽ₯ Next video: https://youtu.be/L7CECWLdTmo?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
πŸŽ₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM

References:
πŸ”— Nature of Code - Chapter 2: https://natureofcode.com/book/chapter-2-forces/
πŸ”— Newton's Laws of Motion: https://en.wikipedia.org/wiki/Newton%27s_laws_of_motion

Timestamps:
0:00 Welcome to Chapter 2!
0:35 Newton's First Low
3:49 Newton's Second Law
5:30 Euler's Integration
8:43 Newton's Third Law
10:29 Implement Newton's Second Law
13:22 Add edges
15:20 Check to see if Newton's Second Law is at play
18:00 Calculate the net force
21:40 Add the object's radius
23:58 May the force be with you!

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