Skip to content

Forces

The Forces module is a bit of an adaptation of Daniel Shiffman’s Nature of Code examples. If you’re interested in learning the math, please see that excellent resource.

This demo below shows basic movement of gravity, drag, wind and friction. It also demonstrates selectively applying forces, in this case, based on the position of the thing.

Demos