Bouncy

Dan Shiffman gave us several code examples of how to simulate springs and pendulums (pendula?). I was really stuck for ideas, and I thought it might be fun to stack some of them together. Somehow, all I could think of…

Go Jump off a Bridge

In Nature of Code, we learned how to simulate forces acting on objects. After playing with some examples with drag forces in liquids and air, I used these principles to make a program inspired by some photographs I took during…

Random Walk

The random walk is a mathematical model of a path of random steps. It is used to describe many processes in nature, like the path of a foraging animal or the motion of a gas particle. Our first assignment for…