2.3 Friction Force - The Nature of Code
The Coding Train The Coding Train
1.7M subscribers
63,474 views
1.6K

 Published On Apr 8, 2020

In this video, I cover how to read the formula for kinetic friction and incorporate it into a p5.js sketch with the Mover applyForce() function. Code: https://thecodingtrain.com/tracks/the...

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

p5.js Web Editor Sketches:
šŸ•¹ļø Friction Force: https://editor.p5js.org/codingtrain/s...
šŸ•¹ļø Top Down Billiards Exercise: https://editor.p5js.org/codingtrain/s...
šŸ•¹ļø Slope Exercise: https://editor.p5js.org/codingtrain/s...
šŸ•¹ļø Show Vectors Exercise: https://editor.p5js.org/codingtrain/s...

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

References:
šŸ”— Friction: https://en.wikipedia.org/wiki/Friction

Videos:
šŸŽ„ for...of loop: Ā Ā Ā ā€¢Ā 16.4:Ā for...ofĀ loopĀ -Ā TopicsĀ ofĀ JavaS...Ā Ā 

Timestamps:
0:00 Welcome back!
1:00 Formula for friction
2:35 Coefficient of friction
3:24 The Normal force
5:33 Add a friction function
8:22 Add an array of objects
10:30 "Quick and dirty" algorithm
11:56 Possible exercises
13:57 Next up -- some case studies

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
šŸ’– 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