In this video I implement the formula for a “drag” force with p5.js (also known as air resistance or fluid resistance) and similar objects falling into a liquid.
Wikipedia entry on drag
Link to the second chapter of the Nature of Code book
- Editing
by Mathieu Blanchette
- Animations
by Jason Heglund