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