Sliding and Falling in p5.js
Playing with vectors, motion and gravity
This page is a continuation of my experiments with gravity and motion. I am starting with the script I wrote on 7 Feb 2023 to simulate a simple falling ball. The big advance there was in using real-world units of time and length, and realistic gravity. Also my first use of the p5.Vector class. Here I will build on that, introducing some horizontal velocity and movement of a ball/wheel on flat and inclined surfaces. No friction or collisions yet. The ball may appear to be rolling but it is not actually.