
5.16: Attraction Behaviors in Toxiclibs VerletPhysics - The Nature of Code
The Coding Train, 12 min, 7.2K views, Aug 8, 2015
Chapters
Show descriptionHide description
This video explains how to add an attraction behavior to a particle. Code: https://thecodingtrain.com/tracks/physics-libraries/physics-libraries/toxiclibs/4-attraction-behavior š¹ļø p5.js Web Editor Sketch: https://editor.p5js.org/natureofcode/sketches/tjIs8XaXP š„ Previous: https://youtu.be/YskU_gJpc0c š„ Next: https://youtu.be/jrk_lOg_pVA References: š Nature of Code: https://nature-of-code-2nd-edition.netlify.app/ š ToxicLibs.js: http://haptic-data.com/toxiclibsjs/ š ToxicLibs Java Reference: https://shiffman.github.io/toxiclibs-javadocs/ Videos: š https://youtu.be/E67e0RX-7Ew Timestamps: 0:00 Introduction 0:56 Assign an attraction behavior to a particle 2:45 Strength of attraction 3:45 Faking collision-like behavior 6:39 Adding a new attraction behavior 7:14 The key word "this" 9:57 Suggested exercises Editing by Mathieu Blanchette Animations by Jason Heglund Music from Epidemic Sound š Website: https://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 š Membership: http://youtube.com/thecodingtrain/join š Store: https://standard.tv/codingtrain šļø Twitter: https://twitter.com/thecodingtrain šø Instagram: https://www.instagram.com/the.coding.train/ š„ https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH š„ 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 #physicsengine #toxiclibs #attraction #java