2.1 Simulating Forces: Gravity and Wind - The Nature of Code
The Coding Train The Coding Train
1.7M subscribers
100,367 views
2.6K

 Published On Mar 27, 2020

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...

šŸš€ Watch this video ad-free on Nebula https://nebula.tv/videos/the-coding-t...

šŸ•¹ļø p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/s...

šŸŽ„ Previous video: Ā Ā Ā ā€¢Ā 1.6Ā AccelerationĀ VectorĀ -Ā TheĀ NatureĀ ...Ā Ā 
šŸŽ„ Next video: Ā Ā Ā ā€¢Ā 2.2Ā MassĀ andĀ AccelerationĀ -Ā TheĀ Natur...Ā Ā 
šŸŽ„ All videos: Ā Ā Ā ā€¢Ā TheĀ NatureĀ ofĀ CodeĀ Ā 

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

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/pas...
šŸš© Suggest Topics: https://github.com/CodingTrain/Sugges...
šŸ’” 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: Ā Ā /Ā thecodingtrainĀ Ā 
šŸ“ø Instagram: Ā Ā /Ā the.coding.trainĀ Ā 

šŸŽ„ Coding Challenges: Ā Ā Ā ā€¢Ā CodingĀ ChallengesĀ Ā 
šŸŽ„ Intro to Programming: Ā Ā Ā ā€¢Ā StartĀ learningĀ here!Ā Ā 

šŸ”— 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-o...

This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecod...

#forbeginners #javascript #p5js

show more

Share/Embed