
2.2 Mass and Acceleration - The Nature of Code
In this video, I add a mass property to the Mover class and examine how a mass property impacts gravity and wind forces. Code: https://thecodingtrain.com/tracks/the-nature-of-code-2/noc/2-forces/2-mass-and-acceleration
π Watch this video ad-free on Nebula https://nebula.tv/videos/the-coding-train-yt-2-2-mass-and-acceleration-the-nature-of-code
πΉοΈ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/cDzEUXbjLD
π₯ Previous video: https://youtu.be/Uibl0UE4VH8?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
π₯ Next video: https://youtu.be/WBdhAuWS6X8?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
π₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
References:
π Galileo's Leaning Tower of Pisa Experiment: https://en.wikipedia.org/wiki/Galileo%27s_Leaning_Tower_of_Pisa_experiment
π Newton's Laws of Motion: https://en.wikipedia.org/wiki/Newton%27s_laws_of_motion
Timestamps:
0:00 Welcome back!
0:43 Add a second Mover object
1:53 Add mass
4:14 Use the static version of div()
5:02 Give each mover a different mass
6:06 Leaning Tower of Pisa experiment
6:56 Scale gravity by mass
7:48 Use the square root of mass to visualize the mover
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
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