9:54:074.1: Particle System Simulation - The Nature of Code
From the creator
Welcome to Chapter 4 of The Nature of Code: Particle Systems! I begin by coding a simple particle system in p5.js. I convert the Mover class into a Particle class, add a lifetime property, and organize a collection of particles into an array. Code: https://thecodingtrain.com/tracks/the-nature-of-code-2/noc/4-particles/1-particle-system 🕹️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/QRzgzQLnQ 🎥 Next video: https://youtu.be/wDYD3JVtOys?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM 🎥 All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM References: 🔗 Particle Systems - A Technique for Modeling a Class of Fuzzy Objects: https://cal.cs.umbc.edu/Courses/CS6967-F08/Papers/Reeves-1983-PSA.pdf Videos: 🎥 Simple Particle System: https://youtu.be/UcdigVaIYAk 🎥 Simulating Forces: https://youtu.be/Uibl0UE4VH8 🎥 Arrays of Objects: https://youtu.be/fBqaA7zRO58 🎥 Fireworks!: https://youtu.be/CKeyIbT3vXI 🎥 Array Functions: filter(): https://youtu.be/qmnH5MT_luk 🎥 Removing Objects from Arrays: https://youtu.be/tA_ZgruFF9k Timestamps: 0:00 Welcome to chapter 4! 0:24 What is a particle system? 1:24 What do we have to code? 2:01 Let's make a particle class! 2:46 Adding a lifetime property. 3:41 Many particles! 5:16 Emitting particles. 5:51 Removing finished particles from the array. 7:59 Let's make a few tweaks to this system? 8:55 What's next? Editing by Mathieu Blanchette Animations by Jason Heglund Music from Epidemic Sound 🚂 Website: ht
Published 2021-03-09 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.





